Fixed to use Percentages instead of raw numbers, and allow for Python 2 or 3