'Set the value of a key in the given data.
Example:
data = {\'foo\': [\'bar\', \'baz\']}
path = [\'foo\', 1]
value = \'bin\'
==> data = {\'foo\': [\'bar\', \'bin\']}'

def _path_set(self, data, path, value):

    container = self._path_get(data, path[:(-1)])
    container[path[(-1)]] = value
