Update mathtricks.py