I have a working module that contains a factory function, a super class and two sub classes. The actual module is here.
I split the factory into its own file and put the two subclasses into the commands/ directory so I could get around a recursion problem caused by importing my subs in the module containing my super.
Just when I think I have everything importing correctly, the factory is stuck with an empty list of subclasses when I try:
for cls in Command.__subclasses__():