Fix for Python 2.7 on ceil/floor

Provided by Lucas during his solution