Python3 compatibility for URL.json()