A Java deciphering program ported to Python