Learning Python while writing a CHIP-8 emulator