import pickle, gtk, gobject
from pprint import pprint

pprint(pickle.loads(pickle.dumps(dict(filter(lambda keyval: isinstance(keyval[1], gobject.GEnum),
                                             gtk.__dict__.items())))))
