Hi,
This is a very cool project and not sure if you're active anymore.
But I'm wondering if you'd be willing to modularize the code that handles reading and writing StarCraft terrain (the TILE section, among others, e.g. http://www.staredit.net/wiki/index.php/Scenario.chk#.22TILE.22_-_StarEdit_Terrain) so it can be re-used in a generic fashion in a library, and not tied directly to terrain generation.
I recently have released a Python library that allows reading or writing all sections of the Scenario.chk. Right now it only handles the TRIG section (triggers) as I use it for making custom games in Python. But one day it would be nice for it to read and write all Scenario.chk sections.
See: https://github.com/sethmachine/richchk