__getattr__ must raise AttributeError for deepcopy to work