SciPy

scipy.optimize.OptimizeResult.viewkeys

OptimizeResult.viewkeys() → a set-like object providing a view on D's keys