Return the key

When a value is added, the generated key is reterned so that the caller of add can quickly keep track of what he added.
__setitem__ usually does not return anything. Maybe you should call this method differently if you want such behaviour.