code: def get_reversed_aliases(self):
          
          return dict((v, k) for k, v in six.iteritems(self.aliases))
docs: Return the reversed aliases dict. Instead of being in the form
          {'alias': mapping}, the dict is in the form {mapping: 'alias'}.