Add __repr__ to improve transparancy of Partition object.