To simply open a URL, use the webbrowser.open() method:
import webbrowser
webbrowser.open("http://stackoverflow.com")
If a browser window is currently open, the method will open a new tab at the specified URL. If no window is open, the method will open the operating system's default b...