Convert any python list of lists (or tuples) so that the strings are formatted correctly for insertion into

    Args:
        ll (list): List of lists (or tuples)

def _make_sql_compatible(ll):
    """ Convert any python list of lists (or tuples) so that the strings are formatted correctly for insertion into

    Args:
        ll (list): List of lists (or tuples)
    """

    new_ll = []
    for l in ll:
        new_l = ()
        for i in l:
            if not i:
                new_l = new_l + (None,)
            else:

                if isinstance(i, str):
                    if sys.version_info < (3, 0):

                        val = i.decode('utf8').encode('ascii', errors='ignore')
                    else:
                        # in py3 strings should be ok...
                        val = i
                else:
                    val = i
                new_l = new_l + (val,)
        new_ll.append(new_l)

    return new_ll