[refs #8] Fixing case where parent=None in PEP8 ignoring logic