A 6502 emulator in Python