This is because in python2 when both operands are integers you perform integer division that by default rounds down:
>>> 33/4
8
>>> 33/4.0 # Note that one of operands is float
8.25
>>> math.ceil(33/4.0)
9.0
In python3 division is performed in float fashion by default (but I guess it is irrelevant).