base class for creating Python CLI tools