def create_new_user_confirmation(user_address):
 id_chars = (string.ascii_letters + string.digits)
 rand = random.SystemRandom()
 random_id = ''.join([rand.choice(id_chars) for i in range(42)])
 record = UserConfirmationRecord(user_address=user_address, id=random_id)
 record.put()
 return 'https://{}/user/confirm?code={}'.format(socket.getfqdn(socket.gethostname()), random_id)

def create_new_user_confirmation ( user_address ) : id_chars = ( string . ascii_letters + string . digits ) rand = random . SystemRandom ( ) random_id = '' . join ( [ rand . choice ( id_chars ) for i in range ( 42 ) ] ) record = UserConfirmationRecord ( user_address = user_address , id = random_id ) record . put ( ) return 'https://{}/user/confirm?code={}' . format ( socket . getfqdn ( socket . gethostname ( ) ) , random_id )
create a new user confirmation .