adding an option to pass a callback function while initializing remote_pyro_server in regression framework