moved math functions to root module level
added MCERP compatible scipy.stats functions