def check_key_expired(key, node, url):
 if (key in node.private_link_keys_deleted):
  url = furl(url).add({'status': 'expired'}).url
 return url

def check_key_expired ( key , node , url ) : if ( key in node . private_link_keys_deleted ) : url = furl ( url ) . add ( { 'status' : 'expired' } ) . url return url
check if key expired if is return url with args so it will push status message else return url .