Splitting factory, super and subs out from a single module
<p>I have a working module that contains a factory function, a super class and two sub classes.  The actual module is <a href="https://github.com/natemarks/CiscoXMLPexpect/blob/master/CiscoXMLPexpect/commandler.py" rel="nofollow">here</a>.</p>

<p>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.</p>

<p>Just when I think I have everything importing correctly, the factory is stuck with an empty list of subclasses when I try:</p>

<pre><code>for cls in Command.__subclasses__():
</code></pre>
