Refactored model.py. Removed print statement from routing