Make __getattr__ raise AttributeError so that pickling works.