Fix percentage calculation. Old version calculated only 0 or 100 on Python 2.6.6 / 2.7.5+ due to integer division