The FTP class implements the client side of the FTP protocol. You can use this to write ... see Internet RFC 959. Here's a sample session using the ftplib module:.
docs.python.org