def repression(val, Kd, power):
    """Function takes a value and Kd. Function fits the value to a hill function with n=power and Kd
    and returns the fraction bound."""
    new_val = val**power / (Kd**power + val** power)
    return new_val