a factory for better python support

* see test_factory.py
* added msml writer from msml-gui
* bug fixes in attribute parsing