request = urllib.request.Request('http://thewebsite.com', headers=request_headers)
contents = urllib.request.urlopen(request).read()
print(contents)
How do I send a custom header with urllib2 in a HTTP Request?