MNT extend rather than append
MNT pep8 and (partial) pylint fixes