extracting rating report from main accounts.py to vote plugin