Fixed division error for ceil function. (py2/py3)