It should be reduced to:

```python

    if isinstance(obj, Response):
        return obj.body.decode('utf-8') if unicode else obj.body

```