Simulate Math Formulas Using Python To Parse Json File