Fixed typo in comment in core.py