Currently, if I want to execute something on a VM, I copy files over like this:
gcloud compute --project copy-files --zone /
A gcloud update that landed a week ago blocked passing ssh commands after '--' and effectively forces use of --command option for this. In this case use:
--command
gcloud compute ssh --zone ZONE INSTANCE --command 'cd /tmp && python some.py'.
gcloud compute ssh --zone ZONE INSTANCE --command 'cd /tmp && python some.py'