def createPeptide(element):
    """
    Create dictionary representation of Peptide element from Percolator XML output
    """
    defns = element.nsmap[None] #default namespace
    
    peptide = {}
    peptide["ID"] = element.get("{{{}}}peptide_id".format(defns))
    peptide["SVMScore"] = float(element.find("{{{}}}svm_score".format(defns)).text)
    peptide["q-value"] = float(element.find("{{{}}}q_value".format(defns)).text)
    peptide["PEP"] = float(element.find("{{{}}}pep".format(defns)).text)
    peptide["ExpMass"] = float(element.find("{{{}}}exp_mass".format(defns)).text)
    peptide["CalcMass"] = float(element.find("{{{}}}calc_mass".format(defns)).text)
    peptide["Protein"] = element.find("{{{}}}protein_id".format(defns)).text
    peptide["p-value"] = float(element.find("{{{}}}p_value".format(defns)).text)
    peptide["PSMs"] = element.xpath(".//x:psm_id/text()", namespaces = {"x": defns}, smart_strings=False)
    
    return peptide