def _extractReturnURL(endpoint):
 if endpoint.matchTypes([RP_RETURN_TO_URL_TYPE]):
  return endpoint.uri
 else:
  return None

def _extractReturnURL ( endpoint ) : if endpoint . matchTypes ( [ RP_RETURN_TO_URL_TYPE ] ) : return endpoint . uri else : return None
if the endpoint is a relying party openid return_to endpoint .