Added a try block around json.loads call, and code to look for 403 errors