python subprocess capture and print stdout