Calling a class from an imported module
<p>Probably stupid question, and I've read many of the similar threads on here but still can't fathom the answer:</p>

<p>in main.py</p>

<pre><code>from userMod import *

class Handler(webapp2.RequestHandler):
    def write(self): #some code here etc
</code></pre>

<p>in userMod.py</p>

<pre><code>class signup(Handler):
    def get(self): #some code here etc
</code></pre>

<p>I get an error saying that Handler is not defined. My simple yet clearly stupid question is how can I access classes from a parent script within a loaded module? Or is it that I simply need to duplicate Handler in each module I create?</p>

<p>Bear in mind I've very new to Python and trying to make my code more modular by splitting out certain types of functions (in this case the user login and registration component of the site I'm building).</p>
