Text this: A Python implementation of graphical models