def split_query_string(query_string):
    """
    Splits a query string into a dictionary

    >>> split_query_string('a=1&b=2&name=abc&y=&z=ab23')
    {'a': '1', 'y': '', 'b': '2', 'name': 'abc', 'z': 'ab23'}
    """

    qs_dict = {}
    qs_parts = query_string.split('&')

    for qs_part in qs_parts:
        k,v = qs_part.split('=')
        qs_dict[k] = v

    return qs_dict