nes_gamepad: adjust Python style of decoder implementation