rate.py: re-order class definitions in module