Update river.py

Final production candidate version.