Fixed python folding issue