[Python-ideas] dunder methods for encoding & prettiness aware formal & informal representations