Add core API localfile.py