Python Script for Solving mp2 Equations