core.py