httplib compatible imports