The trick is to use:
```
100.0 * count / total
```

See 
```
>>> 33 / 100 * 100
0
>>> 100.0 * 33 / 100
33.0
```