Ledit
Ledit is a simple level editor written with pygame. Originally, it was (and still is) written for PickleBunny, but you can easily adapt it to your own tile based game.
The basic structure of a level that can be modified with ledit consists of two parts. Firstly, a map of tiles with multiple layers and secondly a set of meta data like the author's name or a maximum time to finish the level.

