Py3k support

This pull-request passes all the tests under Python 2.7 and Python 3.3

Note: the tests depends on `libpathod`, which is not py3k ready. I added py3k support for both `netlib` and `libpathod`. Will send pull request of `libpathod` ASAP.