if you want to be MORE specific about which keys this should be:
if (set(context.keys()) == {"keystone", "db", "keystone_master_region"})
if you want to be MORE specific about which keys this should be:
if (set(context. keys()) == {"keystone", "db", "keystone_ master_ region" })