Fix flake8 and add comments about dtype compat.