Numpy Least Common Denominator