Misc changes to support python3

Adds support for Leaderboards >= 3.0.0 and makes various changes for python 2/3 compatibility.

All the tests pass in both python 2 and 3 but I'm not sure how comprehensive they are.