def get_connection_func(service, module=None):
 return partial(get_connection, service, module=module)

def get_connection_func ( service , module = None ) : return partial ( get_connection , service , module = module )
returns a partial get_connection function for the provided service .