I'm not familiar with the pipes library, but I think the currently preferred method is using the subprocess module. This is also recommended in the deprecation info for the pipes library.