make python rendering correct