Here's the code: http://pastebin.com/m21dfcc19
What could be improved? The script feels clumsy, and I have no experience refactoring Python code. This will eventually be a GUI FTP client. I'm mainly looking for design advice... -- http://mail.python.org/mailman/listinfo/python-list