Replace CONST.* by getattribute/setattr for cli