Py3: use absolute imports
Adjust line endings for consistency