Make a flag object like numpy to enable attribute access and be more compatible with numpy.