fixed broken K key in python mode