import secrets def generate_key(): return "upn_" + secrets.token_hex(24)