def METHOD_NAME():
    parser = optparse.OptionParser()
    parser.add_option("--input")
    parser.add_option("--export_spreadsheet", action="store_true", dest="export_spreadsheet")
    parser.add_option("--append_unmodified_peptide", action="store_true", dest="append_unmodified_peptide", default=False)
    parser.set_defaults(export_spreadsheet=False)
    (options, args) = parser.parse_args()
    copy_to_working_directory(options.input, "input.pep.xml")
    # Trans-Proteomic Pipeline - cgi-bin/PepXMLViewer.cgi
    cmd = "PepXMLViewer.cgi -I input.pep.xml"
    cmd = "%s %s" % (cmd, "-B exportSpreadsheet")
    if options.export_spreadsheet:
        cmd = "%s %s" % (cmd, "1")
    else:
        cmd = "%s %s" % (cmd, "0")
    execute(cmd)
    if options.append_unmodified_peptide:
        from csv import reader
        csv_opts = {'delimiter': '\t'}
        first = True
        with open("tmp.xls", "w") as output:
            peptide_index = None
            for row in reader(open("input.pep.xls", "r"), **csv_opts):
                if first:
                    peptide_index = row.index("peptide")
                    row.append("unmodified_peptide")
                    output.write("\t".join(row))
                    output.write("\n")
                    first = False
                else:
                    row.append(unmodify(row[peptide_index]))
                    output.write("\t".join(row))
                    output.write("\n")
        execute("mv tmp.xls input.pep.xls")