Chip8 emulator with Python