title: How to resolve import errors in python?
body: <p>I have a specific problem which might require a general solution. I am currently learning <b>apache thrift</b>. I used <a href="http://www.thrift.pl/Thrift-tutorial-our-own-hello-world.html" rel="nofollow">this</a> guide.I followed all the steps and i am getting a import error as Cannot import module UserManager. So the question being<br> <b>How does python import lookup take place.</b> Which directory is checked first. How does it move upwards? <br>
  <b>How does sys.path.append('') work?</b><br><br>
  I found out the answer for this <a href="https://docs.python.org/2/tutorial/modules.html#the-module-search-path" rel="nofollow">here</a>. I followed the same steps. But i am still facing the same issue. Any ideas why? Anything more i should put up that could help debug you guys. ?</p>
  
  <p>Help is appreciated.</p>