Adds python folding