Updated Python sample code

The current Python sample code uses urllib and urllib2. The code works, but are outdated. I used the Requests module instead.