http client for flume  in python