Python2 fix: Convert math.ceil result to int

Signed-off-by: Michael Buesch <m@bues.ch>