Finally, it works.  There seems to be some kind of problem with subprocess --- not sure.