Use httplib or urllib in dogstatsd