stocks with Python subprocess piped stdin, stdout