add Becca Bainbridge version of python_permutation