a python program that calculates p-value for permutation test using pre-learned distribution