Python impl. of Newton's method to find sqrt 2.