Python allows it, but it doesn't meet the coding standard. It looks like you're using tabs instead of spaces (4 spaces per scope).

Also this should be self.http.proxies to add properly to the requests module session.