added a local modified copy of the lmfit minimier.py