def parse_cmd(self, cmd):
    parsed_cmd = []
    printout = []
    for item in cmd:
        if isinstance(item, Secret):
            printout.append('***')
            parsed_cmd.append(item.value)
        else:
            printout.append(item)
            parsed_cmd.append(item)
    print('Executing: {0}'.format(' '.join(printout)))
    return parsed_cmd
def parse_cmd(self, cmd):
    parsed_cmd = []
    printout = []
    for item in cmd:
        if isinstance(item, Secret):
            printout.append('***')
            parsed_cmd.append(item.value)
        else:
            printout.append(item)
            parsed_cmd.append(item)
    print('Executing: {0}'.format(' '.join(printout)))
    return parsed_cmd