NF: creating a facilitator class for optimization using scipy