It is possible to get access to a ftp server on connectport X2 with python?

from ftplib import FTP
ftp = FTP(‘ftp.server’)
ftp.login(‘user’, ‘password’)

print ftp.dir()

I don’t see why not.

Here is something with a little more detail:
try:
f = FileWrapper(buf, len(buf))

    cmd = "STOR " + fname

    ftp = FTP(ftpserver)
    # uncomment for debug
    ftp.set_debuglevel(2)
    ftp.set_pasv('true')
    ftp.login(ftpuser, ftppwd)

    ftp.cwd(ftpdir)

    ftp.storbinary(cmd, f)

    ftp.quit()
    ret = True

See the samples in Digi ESP for Python. There are several FTP samples. Check readme.txt in each sample project.