Square Root Approximation in Python