code: def _MetaPythonBase():
      
      
      class MagicGetItem(type):
          def __new__(mcs, name, bases, dict):
              klass = type.__new__(mcs, name, bases, dict)
              mcs.__getitem__ = lambda _, k: klass()[k]
              return klass
              
      return MagicGetItem
docs: Return a metaclass which implements __getitem__,
      allowing e.g. P[...] instead of P()[...]