Made (forward) calculator for continuous work,
made _grlist_to_pydict more robust