fix __setattr__ localization