title: Python return object
body: <p>How would I make Python return something like this:</p>
  
  <pre><code>{ "status": error,
    "location": loc,
    "codes": {
        "code1": 5,
        "code2": 6,
    },
  }
  </code></pre>
  
  <p>I think this looks like a JSON object?</p>