rewrite of google-drive-panel.py