Exporting FTP Directory Listing to a File - Python