Added docstring to all_subclasses and find_matching_subclass in utils.