Change most uses of os.system to use subprocess

The only places left that use os.system are in ImageShow and setup.py