A Python 3D Model slicing algorithm