refactor rate.py
Merge branch 'master' of https://github.com/xchenmeow/glowing-meow