toplist: Fix Python 3 test breakage