> tmp = rt.encrypt('Cycle{}'.format(pickle.dumps(objSave)))Thanks to this hint
This hint was *wrong*, it will introduce garbage into the string and the "rotor" code is clearly designed to work with byte strings, not unicode strings. Change it to "tmp=rt.encrypt( b'Cycle'+pickle.dumps(objSave) )"