On google-api-python-client/googleapiclient/http.py:552, a file is opened. But this file is never closed. So I receive the following warning: ResourceWarning: unclosed file <_io.BufferedReader name=<file_name> media_body = http.MediaFileUpload()