fixed incorrect content-type being sent

safe_urlopen uses urllib2 which sets the content-type to `application/x-www-form-urlencoded` [by default](https://docs.python.org/2/library/urllib2.html#urllib2.Request). We are sending json encoded data, and so have to override the headers.