Updated Ruby and Python examples