Just a note: while it depends what they're trying to do, often when people use more recent python libraries like the http.client library, they're not actually doing anything that special, in which case the earlier, roughly equivalent libraries such as httplib (in this case) will do just fine.
You can compare the methods in the Python documentation as a starting point, and go from there.