Piping external commands




What is the Python translation for this Bash statement:

tar cf - "${files[@]}" | bzip2 > "$file".tar.bz2

(Ignoring the fact that "tar cjf" also exists...)

In other words, how does one pipe together arbitrary commands?
.