Python Read Output From Terminal