'Convert inputs to optparse style options for ease of processing in Python'

def tc2List(self, inputs):

    args = []
    for (k, v) in inputs.getParameterList():
        args += ['--{0}'.format(k), str(v)]
    return args
