updated Python sample code to use the Requests module instead of urllib and urllib2