Python 3 support.
Replace call to httplib with http.client.