Tweak ParamikoMachine for python3 compatibility.