Escape local minima in optimization problems with Python.