title: how to json parse a python output and store its values like in dict or variables?
body: <p>I have a python code that outputs json </p>
  
  <pre><code>import json 
  from faker import Faker
  import random
  from random import randint
  import subprocess
  fake = Faker('en_US')
  
  for _ in range(1):
  sms =  {
          "name": fake.name(),
          "email": fake.email(),          
          "location": "usa"
          }
  
  with open('abc.json', 'w') as outfile:
      json.dump(sms, outfile)
  
  print(sms)
  </code></pre>
  
  <p>subprocess: </p>
  
  <pre><code>x=subprocess.Popen([" python"," first.py"],shell=True, stdout=subprocess.PIPE)
  output = x.communicate()
  print(output)
  </code></pre>
  
  <p>output I am getting : </p>
  
  <pre><code>(b'{\n  "name": "elmoroy",\n  "email":"ssbyt@gmail.com"}\n', None)
  </code></pre>
  
  <p>output I need :</p>
  
  <pre><code>{
  "name": "elmoroy",
  "email":"ssbyt@gmail.com
  }
  </code></pre>
  
  <p>If I call <code>output["name"]</code>  it should return <code>elmoroy</code>.</p>