I'm trying to replicate what was done in this video: https://www.youtube.com/watch?v=cWf-WXaLFJ8

I think he is using a different version of python though because I'm getting errors. I have python 3.4

This is what I have so far:

Code:
import time
import json
import urllib.request

def main():
    btcePrices = urllib.request.urlopen('https://btc-e.com/api/2/btc_usd/ticker')
    btcejson = json.loads(btcePrices)
    btcelastP = btcejson['ticker']['last']
    btcelastT = btcejson['ticker']['updated']
    print (btcelastP)

while True:
    main()
    time.sleep(1)
I am now getting an error that says TypeError: the JSON object must be str, not 'HTTPResponse'
anyone know how to fix this?