get http response codes with python,urllib.request.urlopen('http://google.com').getcode()