Pep8 py3k

Do not merge this PR until we have some testing!!!

It is just pep8 fixes and a minor py3k compatibility.  But it might break something until tested.

Can somone commit that `original.ncml` file mentioned in the README?  We can start with that for the testing.