better, cleaner convergence.py