Add a codecheck rule to forbid BOOST_FOREACH.
Remove some dead code.
Stop explicitly reading files as bytes. Make codecheck work with python3
Use io.open, which allows to return newlines untranslated
Use io.open, which allows to return newlines untranslated
fix some small codecheck issues