def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def __getitem__(self, key):
        return self._states[key or DEFAULT_DB_ALIAS]