Python reading my textfile with keywords for each line and then I let SQL select it and fetch it in Python, but I don\'t know the right list comprehension or code to exclude