Style updates for PEP8, removed unused imports
Removed unused core.py methods. Added logging to core.py and models.py