If key is not found, d is returned if given, otherwise KeyError is raised.
treams.util.SequenceAsDict.keys
treams.util.SequenceAsDict.popitem