Philip B. Stark, Kellie Ottoboni, Stéfan van der Walt, and I are developing a permutation testing library for Python. The source code is available here. More information about the package is available in my MA thesis.