EDIT. Сделайте копию примера и попробуйте из него.
# Due to a known bug in pydrive if we
# don't empty the variable used to
# upload the files to Google Drive the
# file stays open in memory and causes a
# memory leak, therefore preventing its
# deletion
file = Nonefile после Upload, возможно, там что-то лежит, вроде id или metadata.
=INDIRECT("RC";0)<>INDIRECT("R[-1]C";0) Добавил пример в Таблицу.