Global dict to uppercase, list of or clauses to list comprehension