title: Calling a python script with input within a python script using subprocess
body: <p>I have a script <code>a.py</code> and while executing it will ask certain queries to user and frame the output in json format. Using python subprocess, I am able to call this script from another script named <code>b.py</code>. Everything is working as expected except that I am not able to get the output in a variable? I am doing this in Python 3.</p>