Importing an own python file, Class not defined
<p>I have created the following Classses in a file called my_class.py:</p>

<pre><code>#!/usr/bin/env python
class MyClassA:
    def __init__(self):
        pass  # do something

class MyClassB:
    def __init__(self):
        pass  # do something
</code></pre>

<p>When I import that module I get this:</p>

<pre><code>&gt;&gt;&gt; import my_class
&gt;&gt;&gt; a = MyClassA()
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
NameError: name 'MyClassA' is not defined
</code></pre>

<p>If I do:</p>

<pre><code>from my_class import MyClassA
</code></pre>

<p>it works... is there a way I can import all the classes (modules) within that file if there were more and without using the "from X import Y" statement?</p>