fixed integer division problem in likefuncs.py