Add __str__ methods for Python 3