Your previous comment is gone but perhaps the reason it worked in jinja was because it imports `division`. E.g.
```
>>> 33 / 100
0
>>> from __future__ import division
>>> 33 / 100
0.33000000000000002
```

Either way, it's probably best to avoid guessing so your new solution is right.