There are lot of examples available on internet.
http://www.pythonforbeginners.com/code-snippets-source-code/how-to-use-ftp-in-python
http://stackoverflow.com/questions/17438096/ftp-upload-files-python
http://effbot.org/librarybook/ftplib.htm
https://gist.github.com/slok/1447559
https://geonet.esri.com/thread/16333
http://love-python.blogspot.in/2008/02/ftp-file-upload.html
If this helped.. accept the answer