Raise AttributeErrors in __getattr__.

This fixes help(Oct2Py()), tab completion in IPython is broken however
since it tries to call `trait_names` without checking for its existence
first, leading to an annoying `Oct2PyError` about this function not
existing.