pypermutations upgrade