Update kerioapi.py

Add writeLog function.