Create csv_to_JSON.py

CSV to nested JSON converter used for D3 project.
Sample of export format:
[
  {
    "name": "stomach acid", 
    "children": [
      {
        "name": "AstraZeneca Pharmaceuticals", 
        "children": [
          {
            "aka": "esomeprazole magnesium    ", 
            "size": "1441472", 
            "sales": "1.4 bil", 
            "name": "Nexium", 
            "treats": "heartburn, gastroesophageal reflux"
          }
        ]
      }
    ]
  }, 
  {
    "name": "asthma", 
    "children": [
      {
        "name": "GlaxoSmithKline", 
        "children": [
          {
            "aka": "fluticasone propionate", 
            "size": "1204874", 
            "sales": "1.2 bil", 
            "name": "Advair Diskus", 
            "treats": "asthma, bronchitis, and chronic obstructive pulmonary disease"
          }
        ]
      }, 
      {
        "name": "Boehringer Ingelheim Pharmaceuticals Inc.", 
        "children": [
          {
            "aka": "tiotropium bromide", 
            "size": "702246", 
            "sales": "702 mil", 
            "name": "Spiriva", 
            "treats": "chronic obstructive pulmonary disease"
          }
        ]
      }
    ]
  }, 
  {
    "name": "cancer", 
    "children": [
      {
        "name": "Amgen Inc.", 
        "children": [
          {
            "aka": "pegfilgrastim", 
            "size": "803286", 
            "sales": "803 mil", 
            "name": "Neulasta", 
            "treats": "growth of white blood cells, particularly for patients undergoing chemotherapy to prevent infections"
          }
        ]
      }
    ]
  }, 
  {
    "name": "HIV", 
    "children": [
      {
        "name": "Gilead Sciences Inc.", 
        "children": [
          {
            "aka": "emtricitabine / tenofovir / efavirenz", 
            "size": "695411", 
            "sales": "695 mil", 
            "name": "Atripla", 
            "treats": "HIV using three antiretroviral drugs in one tablet"
          }, 
          {
            "aka": "tenofovir/emtricitabine", 
            "size": "565853", 
            "sales": "566 mil", 
            "name": "Truvada", 
            "treats": "HIV using two antiretroviral drugs in one tablet"
          }
        ]
      }
    ]
  }, 
  {
    "name": "blood pressure", 
    "children": [
      {
        "name": "Novartis Corporation", 
        "children": [
          {
            "aka": "valsartan", 
            "size": "474603", 
            "sales": "475 mil", 
            "name": "Diovan", 
            "treats": "abnormally high blood pressure (hypertension)"
          }
        ]
      }
    ]
  }, 
  {
    "name": "painkiller", 
    "children": [
      {
        "name": "NA", 
        "children": [
          {
            "aka": "oxycodone", 
            "size": "668415", 
            "sales": "668 mil", 
            "name": "OxyContin", 
            "treats": "post-operative pain"
          }
        ]
      }, 
      {
        "name": "Pfizer Inc.", 
        "children": [
          {
            "aka": "pregabalin", 
            "size": "511571", 
            "sales": "512 mil", 
            "name": "Lyrica", 
            "treats": "nerve and muscle pain caused by diabetes, shingles, fibromyalgia, or spinal cord injury"
          }
        ]
      }
    ]
  }, 
  {
    "name": "psych", 
    "children": [
      {
        "name": "Otsuka Pharmaceutical Co.", 
        "children": [
          {
            "aka": "aripiprazole", 
            "size": "1478301", 
            "sales": "1.5 bil", 
            "name": "Abilify", 
            "treats": "schizophrenia, bipolar disorder, depression, autism"
          }
        ]
      }, 
      {
        "name": "Eli Lilly and Company", 
        "children": [
          {
            "aka": "duloxetine", 
            "size": "1227484", 
            "sales": "1.2 bil", 
            "name": "Cymbalta", 
            "treats": "major depressive disorder, general anxiety disorder, fibromyalgia"
          }
        ]
      }
    ]
  }, 
  {
    "name": "multiple sclerosis", 
    "children": [
      {
        "name": "Teva Pharmaceuticals", 
        "children": [
          {
            "aka": "glatiramer acetate", 
            "size": "908061", 
            "sales": "908 mil", 
            "name": "Copaxone", 
            "treats": "relapsing-remitting multiple sclerosis"
          }
        ]
      }
    ]
  }, 
  {
    "name": "kidney", 
    "children": [
      {
        "name": "Amgen Inc.", 
        "children": [
          {
            "aka": "epoetin alfa", 
            "size": "514165", 
            "sales": "514 mil", 
            "name": "Epogen", 
            "treats": "anemia caused by chronic kidney disease in patients on dialysis"
          }
        ]
      }
    ]
  }
]