def get_recursive_subclasses(cls):
return cls.__subclasses__() + [g for s in cls.__subclasses__() for g in get_recursive_subclasses(s)]<EOL>
Return list of all subclasses for a class, including subclasses of direct subclasses