def output_to_str(outp, split=True):
    """
    helper to convert shell output into strings/lists
    """
    outp = outp.decode('utf-8').strip()
    if split:
        outp = [x.strip() for x in outp.split() if x.strip()]
    return outp