updated plugins/g.py to fit with Googles new json api