'Get an item from a dictionary with key notation a.b.c
d = {\'a\': {\'b\': \'c\'}}}
key = a.b
return c'

@staticmethod
def get_entry(data, key, sep='.'):

    if (key == ''):
        pass
    elif ((not (key and Yedit.valid_key(key, sep))) and isinstance(data, (list, dict))):
        return None
    key_indexes = Yedit.parse_key(key, sep)
    for (arr_ind, dict_key) in key_indexes:
        if (dict_key and isinstance(data, dict)):
            data = data.get(dict_key)
        elif (arr_ind and isinstance(data, list) and (int(arr_ind) <= (len(data) - 1))):
            data = data[int(arr_ind)]
        else:
            return None
    return data
