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