Update: see the comments for my solution.
My python code uses urllib2 to access a FTP server through a proxy with user and password. I use both a urll
urllib2
urll