Copy _formula to clones; python 3 compatibility