Convert to LF and add .gitignore in preparation for 2to3 conversion.
2to3 conversion
Cleanup to make the script actually work with Py3k.

Also add a primitive test-suite.

Note, that it passes, although there are still many elements
non-supported, so test data will have to be changed accordingly as well.
Add .travis.yml