def parse_opcode(self):
    mode_opcode_str = '{:>05}'.format(str(self.memory[self.instruction_ptr]))
    modes = mode_opcode_str[:3][::(- 1)]
    opcode = int(mode_opcode_str[3:])
    self.instruction_ptr += 1
    return (modes, opcode)
def parse_opcode(self):
    mode_opcode_str = '{:>05}'.format(str(self.memory[self.instruction_ptr]))
    modes = mode_opcode_str[:3][::(- 1)]
    opcode = int(mode_opcode_str[3:])
    self.instruction_ptr += 1
    return (modes, opcode)