Refactor/core model and test model.py to Python 3.6+
Refactor/core model and test model.py to Python 3.6+: a task in Trending-SWE1.0 (Harbor dataset). Title: Refactor/core model and test model.py to Python 3.6+
The task
**Title:** Refactor/core model and test_model.py to Python 3.6+
Part of scalingX/Trending-SWE1.0.