Python global variable insanity
<p>You have three files: main.py, second.py, and common.py</p>

<p>common.py</p>

<pre><code>#!/usr/bin/python
GLOBAL_ONE = "Frank"
</code></pre>

<p>main.py</p>

<pre><code>#!/usr/bin/python
from common import *
from second import secondTest

if __name__ == "__main__":
    global GLOBAL_ONE
    print GLOBAL_ONE #Prints "Frank"
    GLOBAL_ONE = "Bob"
    print GLOBAL_ONE #Prints "Bob"

    secondTest()

    print GLOBAL_ONE #Prints "Bob"
</code></pre>

<p>second.py</p>

<pre><code>#!/usr/bin/python
from common import *

def secondTest():
    global GLOBAL_ONE
    print GLOBAL_ONE #Prints "Frank"
</code></pre>

<p>Why does secondTest not use the global variables of its calling program?  What is the point of calling something 'global' if, in fact, it is not!?</p>

<p>What am I missing in order to get secondTest (or any external function I call from main) to recognize and use the correct variables?</p>
