While phunsoft gave an excellent solution, I felt I should suggest an alternative approach.
By default, the ftp server in Z/OS in ASCII mode translates EBCDIC to ASCII and vice versa during the transfer, which simplifies text transfers considerably. To perform an ASCII-mode transfer in Python you would need to use storlines or readlines instead of storbinary or readbinary.
One caution--EBCDIC encoding of the square bracket ([]) is ambiguous--there are two encodings that might be used for it. If you're uploading or downloading code in a language for which those are a syntactical element this may lead to issues.