Uniform Distribution Python Scipy Optimize