docs: def enum(*args, **kwargs):
      '''An enum class to mirror XBMC constatns. All args and kwargs.keys are
      added as atrrs on the returned object.
  
      >>> States = enum('NEW_JERSEY', NY='NEW_YORK')
      >>> States.NY
      'NEW_YORK'
      >>> States.NEW_JERSEY
      'NEW_JERSEY'
      >>> States._fields
      ['NY', 'NEW_JERSEY']
      '''
      kwargs.update((arg, arg) for arg in args)
      kwargs['_fields'] = kwargs.keys()
      return type('Enum', (), kwargs)