':type command: str
:type test: str
:type python_version: str'

def __init__(self, command, test, python_version=None):

    self.command = command
    self.test = test
    self.python_version = python_version
    self.name = (self.test or self.command)
    if self.python_version:
        self.name += ('-python-%s' % self.python_version)
    try:
        import junit_xml
    except ImportError:
        junit_xml = None
    self.junit = junit_xml
