def get_epubs(path, keyword):
    return [f for f in listdir(path) if isfile(join(path, f)) and f[-4:] == "epub" and f in keyword]  # list directory & exclude directories & filter with keyword
dataset/ETHPy150Open hzengin/KindleGate/Utilities.py/get_epubs/swapped operands of `in`