title: Google App Engine: importing modules within the handler's scope vs global scope
body: <p>My project consists of a lot of imports which are placed at 'global' scope.</p>
  
  <pre><code>from google.appengine.ext import ndb
  from handlers import SomeHandler
  import logging
  import datetime  # will only use this module ONCE
  </code></pre>
  
  <p>I want to use the <code>datetime</code> module just <strong>once</strong> inside a specific handler. Should I import datetime within the handler or should I leave it in global scope?</p>
  
  <pre><code>import datetime  # Should we import here?
  
  class BookHandler(webapp2.RequestHandler):
      import datetime   # Or, should we import here?
      def get(self):
          today = datetime.datetime.now() 
  </code></pre>
  
  <p>It seems like importing locally shows clearer dependency relationships. Is there any performance issue or other drawbacks to consider?</p>