title: TypeError: list indices must be integers, not str with xmltodict:
body: <p>I have got this <a href="https://raw.githubusercontent.com/galaxyproject/usegalaxy-playbook/664d38a60d87a4cd8f697d5ecd0fd062b238bc75/files/galaxy/usegalaxy.org/var/migrated_tools_conf.xml" rel="noreferrer">XML</a> file: </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;toolbox tool_path="/galaxy/main/shed_tools"&gt;
  &lt;section id="snpeff" name="snpEff" version=""&gt;
    &lt;tool file="toolshed.g2.bx.psu.edu/repos/pcingola/snpeff/c052639fa666/snpeff/snpEff_2_1a/snpEff_2_1a/galaxy/snpSift_filter.xml" guid="toolshed.g2.bx.psu.edu/repos/pcingola/snpeff/snpSift_filter/1.0"&gt;
        &lt;tool_shed&gt;toolshed.g2.bx.psu.edu&lt;/tool_shed&gt;
          &lt;repository_name&gt;snpeff&lt;/repository_name&gt;
          &lt;repository_owner&gt;pcingola&lt;/repository_owner&gt;
          &lt;installed_changeset_revision&gt;c052639fa666&lt;/installed_changeset_revision&gt;
          &lt;id&gt;toolshed.g2.bx.psu.edu/repos/pcingola/snpeff/snpSift_filter/1.0&lt;/id&gt;
          &lt;version&gt;1.0&lt;/version&gt;
      &lt;/tool&gt;
      &lt;tool file="toolshed.g2.bx.psu.edu/repos/pcingola/snpeff/c052639fa666/snpeff/snpEff_2_1a/snpEff_2_1a/galaxy/snpEff.xml" guid="toolshed.g2.bx.psu.edu/repos/pcingola/snpeff/snpEff/1.0"&gt;
        &lt;tool_shed&gt;toolshed.g2.bx.psu.edu&lt;/tool_shed&gt;
          &lt;repository_name&gt;snpeff&lt;/repository_name&gt;
          &lt;repository_owner&gt;pcingola&lt;/repository_owner&gt;
          &lt;installed_changeset_revision&gt;c052639fa666&lt;/installed_changeset_revision&gt;
          &lt;id&gt;toolshed.g2.bx.psu.edu/repos/pcingola/snpeff/snpEff/1.0&lt;/id&gt;
          &lt;version&gt;1.0&lt;/version&gt;
      &lt;/tool&gt;
      &lt;tool file="toolshed.g2.bx.psu.edu/repos/gregory-minevich/check_snpeff_candidates/22c8c4f8d11c/check_snpeff_candidates/checkSnpEffCandidates.xml" guid="toolshed.g2.bx.psu.edu/repos/gregory-minevich/check_snpeff_candidates/check_snpeff_candidates/1.0.0"&gt;
        &lt;tool_shed&gt;toolshed.g2.bx.psu.edu&lt;/tool_shed&gt;
          &lt;repository_name&gt;check_snpeff_candidates&lt;/repository_name&gt;
          &lt;repository_owner&gt;gregory-minevich&lt;/repository_owner&gt;
          &lt;installed_changeset_revision&gt;22c8c4f8d11c&lt;/installed_changeset_revision&gt;
          &lt;id&gt;toolshed.g2.bx.psu.edu/repos/gregory-minevich/check_snpeff_candidates/check_snpeff_candidates/1.0.0&lt;/id&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;/tool&gt;
  &lt;/section&gt;
  ...
  </code></pre>
  
  <p>I have tried to parse the above file in the following way:</p>
  
  <pre><code>import xmltodict
  
  # wget -c https://raw.githubusercontent.com/galaxyproject/usegalaxy-playbook/c55aa042825fe02ef4a02d958eb811adba8ea45f/files/galaxy/usegalaxy.org/var/shed_tool_conf.xml
  
  if __name__ == '__main__':
  
      with open('tests/shed_tool_conf.xml') as fd:
          doc = xmltodict.parse(fd.read())
          tools_section = doc['toolbox']['section']['@name']
          print tools_section
  </code></pre>
  
  <p>However, I have got the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "importTools2Galaxy.py", line 15, in &lt;module&gt;
      tools_section = doc['toolbox']['section']['@name']
  TypeError: list indices must be integers, not str
  </code></pre>
  
  <p>What did I do wrong?</p>