def delete_all(obj):
    types = tuple([
        Shader,
        Mesh,
        VertexBuffer,
        IndexBuffer,
        Texture,
        Program,
        Context,
    ])
    for name in dir(obj):
        child = getattr(obj, name)
        if isinstance(child, types):
            child.delete()
Calls `delete()` on all members of `obj` that are recognized as
dataset/ETHPy150Open fogleman/pg/pg/core.py/delete_all