Added IOManager._read_from_pipe().

The method is Python 2 and 3 compatible, and is guaranteed to return a string
under both versions.