implemented api request support with python httplib