This requires a Python function call. Better use the C library version:

    from libc.math cimport sqrt