refactor of InstallSoftware.py