Abhishek Balam commented:
As per the instructions given by @averi to try to circumvent this error I tried replacing:
self.file[os.path.basename(info.name)] = t.extractfile(info).readlines()
on Line 516 in ftpadmin
with self.file[os.path.basename(info.name)] = t.extractfile(info).read()
After which the script runs perfectly on my machine. Please do check.