Tweaked arithmetic.py