pass updated parameters back to python