Take a look at ftplib in the current version of python. You can see the function for processing the result of the LIST command that you want to publish for the directory, if you know that the last time you run a successful script, then you can analyze the result from the LIST and act on the new files in the directory. See ftplib for more information on how to do this. The relay function is what I expect to use.
source
share