title: How to reload python modules on python-shell-send-buffer in Emacs?
body: <p>When I use <code>python-shell-send-buffer</code> (C-c C-c) I can see changes from my main buffer in python shell.  </p>
  
  <p>But if my buffer has imported modules they are not reloaded.  How can it be fixed?  </p>
  
  <p>For exmple:<br>
  <strong>main.py:</strong></p>
  
  <pre><code>from functions import foo
  print 'a'
  </code></pre>
  
  <p><strong>functions.py:</strong></p>
  
  <pre><code>def foo():
      print 'bcdef'
  </code></pre>
  
  <p>So if I change <code>foo()</code> and run <code>python-shell-send-buffer</code> on main.py - it gives me the same <code>foo()</code> it read 1st time  </p>
  
  <pre><code>a
  bcdef   # never changed
  </code></pre>