'Main execution path'

def __init__(self):

    self.inventory = {}
    self.read_settings()
    self.parse_cli_args()
    self.conn = http.Http(disable_ssl_certificate_validation=self.disable_ssl_validation)
    if self.args.refresh_cache:
        self.update_cache()
    elif (not self.is_cache_valid()):
        self.update_cache()
    else:
        self.load_cache()
    data_to_print = {}
    if self.args.host:
        data_to_print = self.get_host_info(self.args.host)
    elif self.args.list:
        data_to_print = self.get_list_info()
    print self.json_format_dict(data_to_print, True)
