Add "exception handling" for urllib and json parsing.