Ignore more flake8 errors
Implement hstack() for arrays
Fix variable shadowing in scan