<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def redeem(ctx, htlc_id, secret, account):
 """ Redeem an HTLC contract """

    print_tx(ctx.blockchain.htlc_redeem(htlc_id, secret, account=account))