Numpy Modulus Function In Python With Parameters Vs Constraints