def pow_mod(base, exponent, modulus):
    """
    Computing Modular exponentiation: base ^ exponent (mod modulus)

    Parameters
    ----------
    base : integer
    exponent : integer
    modulus : unsigned integer

    Returns
    -------
    int
        Result of calculation

    """
    return pow(base, exponent, modulus)