Translation of Transfer System scripts from Perl to Python