What happened here? 16 spaces seems to be an overkill.

And why not just:

```python
        if (parent and parent.__class__ != serializable_cls and
                serializable_cls != cls):
            parent = ...
```