Removed all kv code from python code