Update max_permutation.py