added knr.py