Initial Python port of function make_nsis