move all os.system calls to os.subprocess. os.system is deprecated, and it is not recommended using it anymore.