How to reference an object that was created in a different object
<p>I am testing my two classes with a file called test.py. I am just learning programming so this is just a practice program. There is one atlas(map) and i can put multiple 'robots' inside one map. </p>

<pre><code>#test.py
from Atlas import Atlas
atlas = Atlas()
atlas.add_robot('rbt1')


#atlas.py
from Robot import Robot

class Atlas:

    def __init__(self):
        ...

    def add_robot(self, robot, zone = 'forrest'):
        self.robot = Robot(robot)
        print 'added robot %s to %s' % (robot, zone)


#robot.py
class Robot():

    def __init__(self, rbt, zone = 'forrest'):
        self.name = rbt
        print "%s initiated" % rbt

    def step(self, direction):
        ...
</code></pre>

<p>I use the code "atlas.add_robot('rbt1')" to put a new robot inside the atlas.</p>

<p>I want to be able to control the robot with a command such as "rbt1.step('left')" in test.py.</p>
