Calculate area of triangle in python using class