Update rain.py

Final production candidate.