My concern isn't between compatibility with the python code, it is that JAVA_HEAP_MAX is set by storm-config.cmd but in this code it is overwritten, at least I assume that is what = does in a windows batch script.  Why not append or prepend it to STORM_OPTS?