def partial_dict(dct, keys):
    return {k: dct[k] for k in keys}


class example(object):
    first_d = {(1): 1, (2): 2, (3): 3, (4): 4}
second_d = partial_dict(first_d, (2, 3))
Reference class variable in a comprehension of another class variable