Tile indexes being set to floats in Python 3