This is a really bad look, but I would think that if opsec is important to you, you won't have your proxy configuration in application level settings of a Python app. I think the people who would be concerned about this use system wide VPNs or seed boxes.