My python script connects to Snowflake when run from the command line or from an IPython Notebook. When I manually run the script, it opens up a browser window and automatically