Replaced tabs with 4 spaces; re-wrote the http.request()
calls. Removed unneeded stuff. Fixed PipedriveError.
replaced urlencode with json.dumps for POST and PUT
requests.