core.py coding