Add analyze_m2.py script.