class_builtins = set(dir(GenericClass))
terrain_attributes = {attr: getattr(Terrain, attr) for attr in dir(Terrain) if
    attr not in class_builtins}
Are there any other ways to iterate through the attributes of a custom class, excluding the in-built ones?