Tighten up the code

Used requests instead of json and urllib2