def decodelist(thelist):
    """takes a list of bytes
    strips whitespace from ends of each element
    returns a string of the elements joined by spaces
    """
    return " ".join([item.decode("utf8").strip() for item in thelist])