<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def atlas_peer_update_health( peer_hostport, received_response, peer_table=None ):
 """ Mark the given peer as alive at this time. Update times at which we contacted it, and update its health score. Use the global health table by default, or use the given health info if set. """


    with AtlasPeerTableLocked(peer_table) as ptbl:
        if peer_hostport not in ptbl.keys():
            return False

        # record that we contacted this peer, and whether or not we useful info from it
        now = time_now()

        # update timestamps; remove old data
        new_times = []
        for (t, r) in ptbl[peer_hostport]['time']:
            if t + atlas_peer_lifetime_interval() < now:
                continue
            
            new_times.append((t, r))

        new_times.append((now, received_response))
        ptbl[peer_hostport]['time'] = new_times

    return True