Numpy Modulus Function In Python With Parameters