Use a different python folding method