def getLines(fl, begin, end):
    """getLines(list,begin,end) --> get lines inclusive from begin to end"""
    add = 0
    for line in fl:
        if line in [begin]:
            chunk = line
            if end is begin:
                return chunk
            add = 1
        elif line in [end]:
            chunk += line
            add = 0
        elif add == 1:
            chunk += line
    return chunk
