PyThagoras is a project mainly written in Python, it's free.
Calculation scripts for (right-angled) triangles.