If you want to open a website using Python, use webbrowser.
For example, running the code above will open my website in your browser.
My previous tips on automation in Python.
Simplifying Browser Automation with Helium
Adding Sound Notifications to Your Python Code with Chime
Automate Jupyter Notebooks with Papermill