html = urllib2.urlopen('http://example.com/')As you did it you create an instance of urllib2.urlopen() called html.
>>> import urllib2 >>> get_html = urllib2.urlopen >>> html = get_html('http://google.com/') >>> page = html.read() >>> print page[:100] <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="bg"><head><meta content >>>