add ability to write environment properties

Plz consider https://pypi.python.org/pypi/pyjavaproperties