switch http talk to requests, clean up imports