Refactor to use pty or os.pipes
Streamline Travis