refactored code, now using PyDrive module from github.com/googledrive.