implementation of __getattr__ fixed. Must raise an AttributeError instead of returning None if attribute doesn't exist.