Make list handling in convergence tests more pythonic.