def is_sublist(smallList, bigList):
    """
    Checks if smallList is a sublist of bigList
    """
    def n_slices(n, list_):
        for i in range(len(list_)+1-n):
            yield(list_[i:i+n])
    for slice_ in n_slices(len(smallList), bigList):
        if slice_ == smallList:
            return True
    return False