Yes, this follows in the vein of what you would do in Node.js to fulfill a similar role with Phantom.js. Instead, Python offers Selenium which can use phantom.js as a driver. It starts a headless browser instance that can be programmed to interact with web pages that have a high degree of non-static elements. Google forms being notoriously tied down to JavaScript, would often require either some strenuous decomposition of their API or ajax callbacks. Inthis manner, you can interact with the form much like as if you were sitting directly in front of the browser.