fix python folding