title: What is the most Pythonic way to pass objects between imported libraries of code?
body: <p>I have a program which imports two modules, one we will call <code>operations</code> (which is just a series of functions) and the other we call <code>tracking</code> (which is a class).  The program <code>tracking</code> module monitors a series of messages, has some error state flags, and so forth.  The program sorts information in <code>tracking</code> by severity and relevant parties, then dumps this to different files at the end.</p>
  
  <p>I create a single instance of the tracking class with <code>myTrack = tracking.Tracking()</code>.  (Yes, this is <a href="/questions/2774468/please-describe-your-struggles-with-minimizing-use-of-global-variables">global state and therefore bad</a>, but it is pretty handy)</p>
  
  <p>Unforunately, I would like to use my <code>tracking</code> object within the <code>operations</code> module, just to track errors and warnings.  It looks like I can pass <code>myTrack</code> to functions in the <code>operations</code> module as an argument, modifying each and every one of the functions.  </p>
  
  <p>However, is there a "better" or "more Pythonic" way to do this?  I suspect there is something with namespaces which I have failed to grasp.</p>