The problem was solved by
telling request not to follow redirects when doing a proxy. It worked the first time. I felt so good when this happened! Being self-sufficient is a sign of competence and intelligence. That's quite different from being angry with myself for having been sloppy!