switching to pipe.communicate. fixes #33