<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace_fact(term, fact, author=''):
 """ Replaces an existing fact by removing it, then adding the new definition """

    forget_fact(term)
    add_fact(term, fact, author)
    return random.choice(ACKS)