2to3 on tools + don't use 'b' on files fed to csv module
pep8 fixes
use pt2to3 on all relevant modules