Added pretty printing for AttrDict objects. Also changed the frame() function to use nltk.compat.string_types