Update main.py

early FTP support implemented. Need to test and confirm if it works as expected.