def _list_str(lst,sep):
    """
    Returns the list as a string with the given separator and no
    brackets.
    """
    ret = ''
    for x in lst:
        ret += str(x)+sep
    return ret[:-1*len(sep)]    # remove extra separator