SciPy

numpy.record.imag

record.imag

imaginary part of scalar