code: def modify_class(original_class, modifier_class, override=True):
      
      # get members to add
      modifier_methods = inspect.getmembers(modifier_class, inspect.ismethod)
      
      # set methods
      for method_tuple in modifier_methods:
          name = method_tuple[0]
          method = method_tuple[1]
          if isinstance(method, types.UnboundMethodType):
              if hasattr(original_class, name) and not override:
                  return None
              else:
                  setattr(original_class, name, method.im_func)
docs: Adds class methods from modifier_class to original_class.
      If override is True existing methods in original_class are overriden by those provided by modifier_class.