D = b**2 - 4*a*c;
dk = cmath.sqrt(D)
dk = round(dk)
In [2]: D = (11.180339887498949+0j)
In [3]: complex(round(D.real), round(D.imag))
Out[3]: (11+0j)