Queue Python Code Using Functions In Google