def record_is_linear(record, default=True):
    """Return True if record.annotations['topology'] == 'linear'"""
    if 'topology' not in record.annotations:
        return default
    else:
        return record.annotations['topology'] == 'linear'
