def unpack_nested_lists(x):
    """Unpacks listed lists and non-lists into a single, unnested list
    
    Parameters
    ----------
    x :obj:`list`
        List containing lists and non-lists
    
    Returns
    ----------
    :obj:`list`
        Any lists within ``x`` will be unpacked as individual items
        alongside all the other items within ``x``

    """
    return [i if isinstance(j, list) else j for j in x for i in j]