title: parsing json data using request function in python.... i am unable to access the objects
body: <p>My data is similar to this:</p>
  
  <pre><code>{
    "id": "694543830607034",
    "name": "Ankit Dhawan",
    "accounts": {
        "data": [
           {
              "access_token": "a",
              "category_list": [
                 {
                    "id": "192119584190796",
                    "name": "Event"
                 }
              ],
              "name": "Ignitron 2014", // I want to print this.
              "id": "731808386867764",
              "perms": [
                 "ADMINISTER",
                 "EDIT_PROFILE",
                 "CREATE_CONTENT",
                 "MODERATE_CONTENT",
                 "CREATE_ADS",
                 "BASIC_ADMIN"
              ]
           },
  </code></pre>
  
  <p>I also want to access the page name (GITM-IEEE,Ignitron14),
  which I need to access the page name from the JSON.</p>
  
  <p>The code I'm using to try and print the names of the pages:    </p>
  
  <pre><code>import requests 
  import json
  base_url = 'https://graph.facebook.com/me'
  ACCESS_TOKEN="XXXXX"
  fields = 'id,name,accounts'
  url = '%s?fields=%s&amp;access_token=%s' % \
  (base_url, fields, ACCESS_TOKEN,)
  print url
  dat = requests.get(url).json()
  for a in dat:
      for b in a["data"]:
          print b["name"]
  </code></pre>