title: global value not changing
body: <p>Why does this global variable not change?
  And how can I make it so that I can use global functions and variables that can change?</p>
  
  <p><strong>my_lib.py</strong></p>
  
  <pre><code>frame_count = 1
  
  def init():
      global frame_count
      frame_count += 5
      print frame_count # prints 6
  </code></pre>
  
  <p><strong>b.py</strong></p>
  
  <pre><code>from my_lib import *
  
  if __name__ == "__main__":
      init()
      print frame_count # prints 1 instead of 6!
  </code></pre>
  
  <p>edit:</p>
  
  <p>My post is different then the marked duplicate, it's 10 times more simple to read! And the duplicate explains the problem, but not how to work around it.</p>