Add __setattr__ to ADuser and correct some import errors.