Perhaps just move "self._byname.keys()," to the next line, rather than reindenting the rest of the code.