code: def validate_one(cls, keystr):
          
          regex = r'%s$' % cls.ALLOWED_KEY
          if re.match(regex, keystr) is None:
              raise cls.Bad("Bad key syntax for: %s. Should be: key1.key2..." % (keystr))
  
          return True
docs: validates one key string