title: Python 'dict' object not callable?
body: <p>I am using Flask on python 2.7 and I want to return a value as a json value, I'm trying to do it as this,</p>
  
  <pre><code>    user_id = 100
      return_id = {}
      return_id['user'] = user_id
  
      return return_id
  </code></pre>
  
  <p>However I'm getting the following error,</p>
  
  <p>Here is the full traceback,</p>
  
  <blockquote>
    <p>127.0.0.1 - - [03/Oct/2016 15:04:16] "POST /add_new_patient HTTP/1.1" 500 -
    127.0.0.1 - - [03/Oct/2016 15:04:30] "OPTIONS /add_new_patient HTTP/1.1" 200 - [2016-10-03 15:04:30,199] ERROR in app: Exception on
    /add_new_patient [POST] Traceback (most recent call last):   File
    "/mnt/663E60F33E60BE25/Users/acer/Documents/code/thalback/venv/local/lib/python2.7/site-packages/flask/app.py",
    line 1988, in wsgi_app
        response = self.full_dispatch_request()   File "/mnt/663E60F33E60BE25/Users/acer/Documents/code/thalback/venv/local/lib/python2.7/site-packages/flask/app.py",
    line 1642, in full_dispatch_request
        response = self.make_response(rv)   File "/mnt/663E60F33E60BE25/Users/acer/Documents/code/thalback/venv/local/lib/python2.7/site-packages/flask/app.py",
    line 1746, in make_response
        rv = self.response_class.force_type(rv, request.environ)   File "/mnt/663E60F33E60BE25/Users/acer/Documents/code/thalback/venv/local/lib/python2.7/site-packages/werkzeug/wrappers.py",
    line 847, in force_type
        response = BaseResponse(*_run_wsgi_app(response, environ))   File "/mnt/663E60F33E60BE25/Users/acer/Documents/code/thalback/venv/local/lib/python2.7/site-packages/werkzeug/test.py",
    line 871, in run_wsgi_app
        app_rv = app(environ, start_response) TypeError: 'dict' object is not callable</p>
  </blockquote>