def python(registry, xml_parent, data):
 python = XML.SubElement(xml_parent, 'hudson.plugins.python.Python')
 XML.SubElement(python, 'command').text = data

def python ( registry , xml_parent , data ) : python = XML . SubElement ( xml_parent , 'hudson.plugins.python.Python' ) XML . SubElement ( python , 'command' ) . text = data
runs python code in the projects virtual environment .