add new file core.py