Why are my python scripts not updating even though that are saved?
<p>Fair warning, I'm a relatively inexperienced programmer, so my terminology may not be perfect.</p>

<p>First off, I cloned a repository from Github that has a directory with the following structure:</p>

<pre><code>main  
   -&gt; dir1  
      -&gt; script1.py  
   -&gt; dir2
      -&gt; script2.py
</code></pre>

<p>Where foo contains a class called "Class" that implements a method foo(), which is called in script2.py.  </p>

<pre><code>script1.py
-------------------
class Class:
    def __init__(self):
      ...
    def foo(self):
      ...
</code></pre>

<p>...</p>

<pre><code>script2.py
------------------------
    from dir1 import Class
    test = Class()
    print(dir(test))
</code></pre>

<p>This works as anticipated and prints out all the methods of Class, including foo.  </p>

<p>The real issue is that no matter how I change script1.py, while the text appears to have saved, if I run script2.py (python script2.py), dir(test) always produced the same result. </p>

<p>For example, if I were to remove the foo method from script1 and replace it with a bar() method, the file will be saved correctly, but when I run script2, dir(test) will still show foo among the methods of Class, and will not have bar displayed.<br>
Also test.foo() would work, but test.bar() wouldn't even though foo isn't a method of class anymore and bar is.</p>

<p>What I've done so far:  </p>

<ul>
<li>Clone the repository again</li>
<li>chmod -R 777 main  before making any changes</li>
<li>I've added the changes on git, but it has had no change to the functionality of script2  </li>
<li>I've used multiple text editors, including gedit, emacs, nano, and Geany, but none of them have produced different results  </li>
</ul>

<p>My OS is Ubuntu 16.04LTS and I've never experienced this issue before.  </p>

<p>Please let me know if there is any other information I should provide or if I should retry something.</p>