fix python redering issue