Switching the to_gist scrip to use urllib2 instead of requests.