Initial 2to3 conversion
Various python3 fixes