replace spawn with subprocess.call; doesn't work properly again