Complete mapeditor.py