title: Sharing code between python files
body: <p>Lets say I have the following files:</p>
  
  <pre><code>-- classes.py
  -- main.py
  -- commands.py
  -- output.py
  </code></pre>
  
  <p><code>main.py</code> is the master file which uses the code from <code>classes</code>, <code>commands</code>, and <code>output</code>. <code>commands</code> takes objects defined in <code>classes</code> as functional inputs and accesses methods/attributes of these objects. Both <code>commands</code> and <code>classes</code> use functions defined in <code>output</code>.</p>
  
  <p>The question: do I need to import each of these modules in each of the files that depend on them?
  i.e.: do I need to import <code>output</code> in both <code>classes</code>, <code>commands</code>, and <code>main</code>? Or would the fact that <code>classes</code>, <code>output</code>, and <code>commands</code> are all imported into <code>main</code> mean that they don't need to be imported individually? </p>
  
  <p>What is the best practice for handling multiple files with inter-dependencies? </p>