tiling.py: Improved an assertion message.