I think you could just set default to None/None and then `lines = lines[start:end]`