Revert "delete fold.py"

This reverts commit 420e41b9506cb2b3a514a7c53ca352b39fc965eb.