Not sure what type ``children`` is of, but these kind of conversions are dangerous in Python 3.

```python
>>> str(b'foobar')
"b'foobar'"
```