Python Determine Length Of Triangle