Python FTP module Errors Clarification

I set up a scheduled 'bat' file that will run five python FTP push scripts to push files to an external FTP server from my local PC. Under most normal circumstances, this process works fine. However, sometime there will be error during the process to the FTP server as reported by the traceback debug.

ERROR

  Traceback (most recent call last):
    File "push2.py", lin 13, in (module)
      ftp.login('X', 'X')
    File "X\Python\Python35\lib\ftplib.py", line 419, in login
      resp = self.sendcmd('PASS' + passwd)
    File "X\Python\Python35\lib\ftplib.py", line 272, in sendcmd
      return self.getresp()
    File "X\Python\Python35\lib\ftplib.py",line 235, in getresp
      resp = self.getmultiline()
    File "X\Python\Python35\lib\ftplib.py", line 221, in getmultiline
      line = self.getline()
    File "X\Python\Python35\lib\ftplib.py",, line 209, in getline
      raise EOFError
  EOFError

Is these error caused by the scripts I am using or is it due to some settings in my Filezilla Server or it is completely out of my control which is at the external party FTP server? Is there a delicate way to workaround bypassing these errors especially for error 1 since it is happening the most often?

My 'bat' file is below:

cd X:\FTP_Push\Location\1
python push1.py
TIMEOUT 5
cd X:\FTP_Push\Location\2
python push2.py
TIMEOUT 5
cd X:\FTP_Push\Location\3
python push3.py
TIMEOUT 5
cd X:\FTP_Push\Location\4
python push4.py
TIMEOUT 5
cd X:\FTP_Push\Location\5
python push5.py

if NOT ["%errorlevel%"]==["0"] pause

timeout 60

I added timeout of 5s inbetween each script because I thought that I am connecting to the FTP server too fast. But it does not fix the issues.

Many thanks.