def __get_dict(data=None):
    """
    This function creates python dictionary from an iterator

    :param data: An iterator
    :return: (python dict) A python dictionary
    """
    _dict = {}
    _id = 1
    for item in data:
        _dict[_id] = item
        _id += 1
    return _dict
