Python - Using methods defined in __init__.py within the module
<p>Hello Stack Overflow, </p>

<p>Sorry if this has already been asked.</p>

<p>Suppose I have the following directory structure:</p>

<pre><code>lib\
--__init__.py
--foo.py
--bar.py
</code></pre>

<p>Inside foo and bar, there are seperate methods that both need the same method. For instance:</p>

<p>foo:</p>

<pre><code>def method1():
    win()
</code></pre>

<p>bar:</p>

<pre><code>def method2(number):
    if number &lt; 0:
        lose()
    else:
        win()
</code></pre>

<p><strong>init</strong>:</p>

<pre><code>def win():
    print "You Win!"

def lose():
    print "You Lose...."
</code></pre>

<p>Is there a way to use the win and lose methods within the <strong>init</strong>.py in the modules respective subfiles, or do I have to create another file within the folder and have foo and bar import that?</p>
