def isEventClassMatchingName(eventClass, className):
  """
  Check if the `eventClass` name or it's parent classes equals to `className`
  """
  if eventClass.__name__ == className:
    return True

  return any(
      map(lambda c: isEventClassMatchingName(c, className),
          eventClass.__bases__))