import subprocess
import sys
command = [sys.executable, 'ApiStreamingClient.py', '-w', 'flow-index',
    '-n', 'admin', '-p', 'admin', 'localhost', '1477389500000000000',
    '1477389900000000000']
text = subprocess.check_output(command)
subprocess how to use command when shell = False