SciPy

numpy.ndarray.__imod__

ndarray.__imod__

x.__imod__(y) <==> x%=y