Python Write Subprocess Output To Input