template lookup table as list python comprehension