Rename variable, remove assertion, PEP-8

`num` is often used as loop variable in UH and in fact used to be the
loop variable in this method as well before being replaced by `i`.

Since NoneType instances are not likely to implement addChild soon,
it should be safe to drop this as well.