to simplify the problem, I want to use subprocess.call to write a simple string such as "abc" into a dummy file called "test"
subprocess.call(["echo", "abc", ">", "/data/test"])
the result is not as expected: it outputs on the console
abc > /data/test