import rule
rule_list = []
for name in dir(rule):
    value = getattr(rule, name)
if isinstance(value, type) and issubclass(value, Rule):
    rule_list.append(value())
Initialize all the classes in a module into nameless objects in a list