code: def as_dict(self):
          
          return {"name": self.name,
                  "@module": self.__class__.__module__,
                  "@class": self.__class__.__name__}
docs: Makes LibxcFunc obey the general json interface used in pymatgen for
          easier serialization.