I am using Requests module with REST API. Attempted to delete TeamCity build configuration and caught into 401 client error. curl works, see below.
curl -u admin:password -X DELETE url
But not through Requests delete() method, see below.
requests.delete(url)
Example of url is https://teamcity_server/app/rest/buildTypes/build_id