[python] How to check if one of the following items is in a list?