def get_port_mapper():
 return search_upnp_device().addCallback((lambda x: UPnPMapper(x)))

def get_port_mapper ( ) : return search_upnp_device ( ) . addCallback ( ( lambda x : UPnPMapper ( x ) ) )
returns a deferred which will be called with a l{upnpmapper} instance .