Switched from using urllib2 to requests.

urllib2 is a security hazzard, it does not perform certificate checks against a trust root by default, nor does it perform service_identity checks.

Also, requests has a prettier API.
To perform a proper request with JSON encoded data, you'll need `headers={'Content-Type': 'application/json'}`. requests won't introspect your data and guess a Content-Type for you.