def test(obj, attr, dflt):
    return getattr3(obj, attr, dflt)
