Fixes for kote.py