A MIT-licensed Python library for handling TMX tile maps, such as those made by the Tiled editor.
This library is designed to support automatic modification of tile maps, such as tiling, automapping, cutting and joining, etc.
Documentation may be found at https://pytmxlib.readthedocs.org
For the Tiled editor, see http://www.mapeditor.org/
For a Python map loader (with which you can render maps in a game), see http://code.google.com/p/pytmxloader/.