def indent_list(inlist, level):
    """Join a list of strings, one per line with 'level' spaces before each one"""

    indent = ' '*level
    joinstr = '\n' + indent

    retval = joinstr.join(inlist)
    return indent + retval