title: Syntax error when calling "from" attribute of a JSON object
body: <p>I am using RingCentral API to get call log information.</p>
  <p>I am interested in an attribute called <code>from</code> which tells us who was the caller who made the call. To access the caller name, I need to access a call record -&gt; then go to the last leg (root of the call) and then get the from attribute, and then get the name of the caller.</p>
  <p>E.g:</p>
  <blockquote>
  <p>&quot;from&quot;: {
  &quot;name&quot;: &quot;andy murray&quot;,
  &quot;phoneNumber&quot;: &quot;+44712345656&quot;
  }</p>
  </blockquote>
  <pre><code>resp = platform.get('/restapi/v1.0/account/~/call-log', params)       
  for record in resp.json().records:
      print(record.legs[-1].from.name)
  </code></pre>
  <p>After running this command, I am getting error:</p>
  <pre><code>      File &quot;demo.py&quot;, line 43
          print(record.legs[-1].from.name )
  SyntaxError: invalid syntax
  </code></pre>
  <p>It looks like Python is not able to comprehend that this &quot;from&quot; is not part of Python itself. How can I define Python to consider this as an attribute of a JSON object?</p>
  <p>Any help will be appreciated!</p>