How to open a URL in python

import urllib

fun open():
    return urllib.urlopen('')

But when opens it does not render CSS or JavaScript. How can I open the webpage in a web browser?

def error404(error):

I am using bottle. Giving me the error:

TypeError("'bool' object is not iterable",)


with the webbrowser module

import webbrowser'')  # Go to