Replace os.system with subprocess.call

Fixes #24