chore(contrib/gce): make GCE script pass flake8

Also do a few stylistic changes:

 - prefer double quotes instead of single quotes
 - functionize commonly done tasks
 - use exit code