Update core.py
Merge pull request #1 from nomaka/patch-1

Update core.py