Realized there was actually no problem with ranking.py and turned it into an importable file.