Understanding Floor and Ceiling Functions in Python