Use efficient bulk writing
wide-row fix
string concat optimizations
Make whitespace flake8 compliant