Thanks for the note. It looks like something changed either with the USGS service (no longer accepts POST method), or the default behavior of urlib2. I have made changes to the script that result in the original behavior, specifically forcing urlib2 to send a GET request:
# see the code above for the complete set of commands
get_url = url + '?' + data
req = urllib2.Request(url=get_url, headers=headers)
small fix
Thanks for the note. It looks like something changed either with the USGS service (no longer accepts POST method), or the default behavior of urlib2. I have made changes to the script that result in the original behavior, specifically forcing urlib2 to send a GET request:
get_url = url + '?' + data
req = urllib2.Request(url=get_url, headers=headers)