title: Python parsing query from dynamo - TypeError: list indices must be integers or slices, not str
body: <p>I am getting an error when trying to parse data i have received from dynamo, to replicate the error i have save what i receive as a variable below <code>failed_requests</code> I am getting the same error</p>
  <pre><code>TypeError: list indices must be integers or slices, not str
  </code></pre>
  <pre><code>def myfunction():
      failed_requests = [{'payload': '{&quot;claimNumber&quot;: &quot;9000005&quot;, &quot;dateEntered&quot;: &quot;2010-09-17T13:08:02&quot;, &quot;fileNoteId&quot;: &quot;08D8447A&quot;, &quot;fileName&quot;: &quot;responseUint.pdf.pdf&quot;, &quot;fileExtension&quot;: &quot;.pdf&quot;, &quot;categoryCode&quot;: &quot;6a5f9&quot;, &quot;subCategoryCode&quot;: &quot;13&quot;, &quot;noteText&quot;: &quot;INCOMING -20- aug demo&quot;, &quot;dateCreated&quot;: &quot;2020-08-19T20:03:35.1986907&quot;, &quot;createdBy&quot;: &quot;Mick&quot;, &quot;dateUpdated&quot;: &quot;2020-08-19T20:03:35.1986907&quot;, &quot;updatedBy&quot;: &quot;Mick&quot;, &quot;attachmentId&quot;: &quot;0xc2d174150x2625&quot;, &quot;fileDescription&quot;: &quot;test-FN-attachment-1-20-Aug&quot;, &quot;authorId&quot;: &quot;35651784012&quot;, &quot;serviceFromDate&quot;: &quot;2020-08-05T00:00:00&quot;, &quot;serviceToDate&quot;: &quot;2020-08-20T00:00:00&quot;, &quot;dateOnDocument&quot;: &quot;2020-08-11T00:00:00&quot;, &quot;status&quot;: &quot;ffe1c&quot;}', 'filenote_id': '08D8447A', 'processed': 'false'}]
  
      print(&quot;ALL FAILED REQUESTS -------&gt;&quot; + str(failed_requests))
  
      for failed_request in failed_requests:
          print(
              failed_requests[&quot;filenote_id&quot;],
              &quot;:&quot;,
              failed_requests[&quot;payload&quot;],
              failed_request[&quot;processed&quot;],
          )
  
  if __name__ == &quot;__main__&quot;:
      myfunction()
  </code></pre>