fixed some undefined variables

Trying to run `MatrixPython/calcApp.py`, I encountered some undefined variables.

This is just a quick fix to make it runnable.