if "windows" in hostname: addIpToAnswerFile(ip) # Set current sheet and title sheet = workbook.create_sheet(hostname) sheet.title = hostname # Grab packages packages = getPackages(credentials, hostname, ip) # Starting column number for each row row = 1 # Only scan if a baseline file is present if scanner.isLoaded() and not packages[0] == "Failed": scanner.setHostnameAndBuild(hostname) scanner.start(packages) # Format each package to be written to xlsx for package in packages: # Create list from package string package = package.split(" ") # Get columns columns = getColumns(len(package), row) # Go to next row row += 1 # Map package data to corresponding column for idx in range(0, len(columns) + 1):