add python fold