I think this method can be replaced with

  cmdo = ' '.join(k for k in sorted(self._dictionary.keys()))