On Python3.2 I am getting following error when trying to get HTML from remote site, it works well on Python 2.7

Code:
def connectAmazon():
usleep = lambda x: sleep(x/1000000.0)
factor = 400
shouldRetry = True
retries = 0
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36'}
attempt = 0
while shouldRetry == True:
random = randint(2, 9)
attempt += 1
print ("Attempt#", attempt)
#print (attempt)
url = "http://www.amazon.com/gp/offer-listing/B009OZUPUC/sr=/qid=/ref=olp_prime_new?ie=UTF8&colid=&coliid=&condition=new&me=&qid=&seller=&shipPromoFilter=1&sort=sip&sr"
html = requests.get(url)
status = html.status_code
if status == 200:
shouldRetry = False
print ("Success. Check HTML Below")
print(html.text) #The Buggy Line
break
elif status == 503:
retries += 1
delay = random * (pow(retries, 4)*100)
print ("Delay(ms) = ", delay)
#print (delay)
usleep(delay)
shouldRetry = True
connectAmazon()
What to be done to resolve this on Python 3.2 or Py 3.x?
html.textwhat type it is both in Python2 and Python3? They are probablyunicodeandstrrespectively but just to make sure.