in userbeacon/jwksutils.py [0:0]
def ensure_bytes(key): if isinstance(key, str): key = key.encode('utf-8') return key