title: return chalice Response object from chalicelib/utils.py
body: <p>Using AWS Chalice, and suppose <code>app.py</code> looks like this:</p>
  
  <pre><code>from chalice import Chalice, Response
  from chalicelib.utils import some_class
  
  app = Chalice(app_name='myApp')
  app.debug = True
  
  @app.route('/myRoute',
         methods=['POST'],
         content_types=['application/octet-stream'])
  def myRoute():
     some_class_instance = some_class()
     some_class_instance.some_def()
  
     return Response(
        body={'hello': 'world'},
        headers={'Content-Type': 'application/json'})
  </code></pre>
  
  <p>and in <code>utils.py</code>:</p>
  
  <pre><code>import requests
  from chalice import Response
  
  class some_class:
      def some_def():
          return Response(
               body={'key1': 'val1'},
               headers={'Content-Type': 'application/json'})
  </code></pre>
  
  <p>The return statement from <code>some_class.some_def</code> is not returned to the client if written as shown. But if I run <code>some_def</code> from inside <code>app.py</code> it is returned. Why?</p>
  
  <p>How can I return objects to the client from outside of <code>app.py</code>?</p>