Solving Math Problems With Python