preprocessing.py: coding conventions (pylint), tests
hwrt/preprocessing.py: some refactoring with pylint