I have a class with many member functions, and I want self.func to have function pointer based on provided name. However, this way each class should have a dict from all nam