update urllib import. update json decode to utf-8.

Updated to the new urllib imports: urllib.request, urllib.response...etc.
Had to change json.loads() to read the response and then decode from utf-8.