<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list(gandi, domain, limit):
 """List mail forwards for a domain."""

    options = {'items_per_page': limit}
    result = gandi.forward.list(domain, options)
    for forward in result:
        output_forward(gandi, domain, forward)
    return result