Add assign()

For these cases, you can use `from _compat import iteritems` if you want to simulate `dict.iteritems()` in Python 3.