title: 'module' object has no attribute 'Player'
body: <p>I'm trying to make a simple game, which has multiple files that need to import each other. My mob module needs to import my player module and do player = player.Player() to create a new class instance. The class is in the player.py file, but it's apparently not being recognized.</p>
  
  <p>I did world = world.World() in my mob file, and that worked perfectly, so I'm confused as to why my player file won't work.</p>
  
  <pre><code>player.__file__ shows the correct path so that's not the issue.
  </code></pre>
  
  <p>This is what I have at the beginning of mob.py:</p>
  
  <pre><code>import world
  import main
  import player
  
  world = world.World()
  player = player.Player()
  
  class Mob:
      #Class definition
  </code></pre>
  
  <p>player.py:</p>
  
  <pre><code>import main
  import world
  
  world = world.World()
  
  class Player:
      #Definition
  </code></pre>
  
  <p>world.py:</p>
  
  <pre><code>import os
  import main
  
  class World:
      #Definition
  </code></pre>
  
  <p>Not sure if this will help, but this is the main function in main.py:</p>
  
  <pre><code>if __name__ == "__main__":
      console = []
      player = player.Player()
      movePlayer = player.Move
      transformPlayer = player.Transform
      goblin = mob.Mob()
      world = world.World()
      mapSize = world.MapSize
      mainMenu()
  </code></pre>