replaced os.system for call from subprocess
in case of non-zero status, the script will stop execution