Scipy curve fit multiple variables