Update analysis.py with new finallist.py method