various six based import/syntax fixes
use new style octal literals
a mass of byte string and import fixes