Update mapeditor.py

Updated it so that it will actually run without crashing.

If a map is provided, it will save to that. If not, it still saves to newmap.py.

Old usages of the file work.