python subprocess pass string to stdin