Calculator to solve basic geometry formulas written in Python