Library for interfacing with a TiVo