start on python 3.3 support

These changes allow the module to be imported in python 3.3, although the code still doesn't work because the urllib module has been rearranged a lot. Still, it's a start.