title: Import statement inside class/function definition - is it a good idea?
body: <p>I created a module named <code>util</code> that provides classes and functions I often use in Python.
  Some of them need imported features. What are the pros and the cons of importing needed things inside class/function definition? Is it better than <code>import</code> at the beginning of a module file? Is it a good idea?</p>