Fixes for SpiNNaker support and some flake8.