Create kbase.py