A stab at supporting Python 3.x

part 2