title: Python duplicates data from JSON response
body: <p>When I open python shell and run my code below it gives exactly 250 entries. But when I run it in the shell it gives me 500.</p>
  
  <pre><code>import requests
  import json
  
  url = 'https://www.cefconnect.com/api/v3/pricinghistory/DPG/1Y'
  json_data = requests.get(url).json()
  price_data =  json_data['Data']
  
  for i in price_data['PriceHistory']:
      print (i['Data'])
  </code></pre>
  
  <p>This is a sample from the json that I'm traing to manipulate:</p>
  
  <pre><code>{"Data":
      {"Period":"1Y",
      "PriceHistory":
          [{"NAVData":19.31000,
            "DiscountData":-14.19,
            "Data":16.57000,
            "DataDate":"2017-02-14T00:00:00",
            "DataDateJs":"2017/02/14",
            "DataDateDisplay":"2/14/2017"},           
           {"NAVData":19.33000,
            "DiscountData":-14.49,
            "Data":16.53000,
            "DataDate":"2017-02-15T00:00:00",
            "DataDateJs":"2017/02/15",
            "DataDateDisplay":"2/15/2017"},      
           {"NAVData":19.26000,
            "DiscountData":-14.38,
            "Data":16.49000,
            "DataDate":"2017-02-16T00:00:00",
            "DataDateJs":"2017/02/16",
            "DataDateDisplay":"2/16/2017"},
           {"NAVData":19.18000,
            "DiscountData":-14.18,
            "Data":16.46000,
            "DataDate":"2017-02-17T00:00:00",
            "DataDateJs":"2017/02/17",
            "DataDateDisplay":"2/17/2017"},
           {"NAVData":19.31000,"DiscountData":-
  </code></pre>
  
  <p>Somehow it duplicates the loop entries.</p>