tmp = [index for index, name in enumerate([car.name for car in cars]) if 
    'VW' in car.name or 'Poodle' in car.name]
Python: How to re-use list comprehensions after they are created in an expression