divmod

quotient, remainder = divmod(numerator, denominator)
Johan