Google Cloud Functions Python Code For Snake