import httplib2
import simplejson
import base64
url = "http://powertwenty.com/c2logapi/1/historical/monthlysummaries"
h = httplib2.Http()
authorizationHeader = "Basic %s"%base64.b64encode("%s:%s"%("user", "password"))
resp, content = h.request( url, "DELETE", headers={"Authorization":authorizationHeader, "X-API-KEY":"xxxxxxxxxxxxxxx" } )
assert resp["status"]=="204"