Create kernel.py

Functions related to creating and performing operations with the kernel