hwrt/create_model.py: improved code with pylint