small fix in pretty_print and shapeModels