def trial_success(boutlist):
    """Takes list of times of bouts in seconds, 
    returns bool of whether the mouse managed to get the tape off in time.
    """
    if boutlist[-1] == 300:
        success = False
    else:
        success = True
    return success