added support for variable length tilesets, yay paython