Python issue when returning function from another file
<p>I'm having a bit of an issue when trying to return a function from another file.</p>

<p>main.py:</p>

<pre><code>from master_input import load_input

class Vera(object):
    def __init__(self):
        masterinput = load_input()
        self.masterinput = masterinput

    def load_masterinput(self):
        return self.masterinput
</code></pre>

<p>master_input.py:</p>

<pre><code>import sys

def load_input():
    if sys.version_info &lt;= (3,0,0):
        masterinput = raw_input()
    elif sys.version_info &gt;= (2,7,11):
        masterinput = input()
    return masterinput
</code></pre>

<p>There seems to be no output when running the first file. I want it to return <code>masterinput</code> in the second file because if I were to end the function with <code>load_input()</code>, in the second file, it would just output without even returning <code>self.masterinput</code> in the first file.</p>