def mset_list(item, index, value):
if isinstance(index, (int, slice)):<EOL><INDENT>item[index] = value<EOL><DEDENT>else:<EOL><INDENT>map(item.__setitem__, index, value)<EOL><DEDENT>
set mulitple items via index of int, slice or list