digit_math.py now passes fairly comprehensive unit test