Python 3.3 httplib compatibility