switch to subprocess.call, as it blocks; fixed py3 compat