Just copy calc.py into your project's tree.
A sophisticated, stateful, session-oriented calculator with fairly high performance