fix python output