Fix percentage calculation. Old version calculated only 0 or 100 on Python 2.6.6 / 2.7.5+ due to integer division
Merge pull request #68 from 5nafu/master

Fix percentage calculation.