Update waves.py

Final production candidate.