renaming api.py to core.py