A stab at supporting Python 3.x

Third time was not a charm