code: def parse(cls, op):
          
          for event in cls:
              if event.value == int(op):
                  return event
          return None
docs: Gets the enum for the op code
  
          Args:
              op: value of the op code (will be casted to int)
  
          Returns:
              The enum that matches the op code