[python] How to create a custom string representation for a class object?