add ability to write environment properties

This method should accept **kwargs