Made ranking.py pass right data types