def getWindow(lst, index, window):
    """
    :param lst: Some list
    :param index: index at senter of window
    :param window: window size -> +- window on each side
		Total size of 2*window+1
    """
    min_idx = index-window if index-window >= 0 else 0
    max_idx = index+window if index+window < len(lst) else len(lst)-1
    return range(min_idx, max_idx+1)