Python Current Shell Output Definition