python subprocess get stdout as string