Square Root Method In Python Class