def translate(parsed):
    """
        translate a tuple (mod, args) to a string
    """
    if isinstance(parsed, tuple):
        return '%s(%s)' % (parsed[0], ', '.join(map(translate, parsed[1])))
    else:
        return parsed