Script rewritten to use Requests rather than urllib and urllib2