Revert "Update core.py"

This reverts commit 876752e8004dbf05ed3b431728b2a7a71f61cb29.