extrema.py debugging