Create core.py

first commit