Update rating.py