Python Generate All Permutations Python Compiler With Scipy Interp1d