python subprocess write to stdout