Provides a functionality similar to POSIX's tee for python