def format_op_row(ipFile, totLines, totWords, uniqueWords):
    """
    Format the output row with stats
    """
    txt = os.path.basename(ipFile).ljust(36) + ' '
    txt += str(totLines).rjust(7) + ' '
    txt += str(totWords).rjust(7) + ' '
    txt += str(len(uniqueWords)).rjust(7) + ' '
    return txt
Format the output row with stats