connect-script not working

The connect-script is not called by ocserv.

software version: ocserv-0.10.12-1.el7.x86_64

configuration has both of the lines enabled:

connect-script = /etc/ocserv/connect-script
disconnect-script = /etc/ocserv/disconnect-script

connect-script:

#!/bin/sh
current_path=`cd $(dirname $0); pwd`
python $current_path/connect-script.py $REASON $USERNAME $GROUPNAME $HOSTNAME $DEVICE $IP_REAL

The connect / disconnect python script is fairly simple:

import sys
fp = open('/tmp/disconn_log', 'w') # this differs in connect-script

for i in range(len(sys.argv)):
    fp.writelines(str(i) + ": " + sys.argv[i] + "\n")

fp.close()

When I reload ocserv and connect using my phone, I see no files under /tmp is created. I turned on DEBUG 9999 mode but I am not seeing anything has the keyword to (dis)connect-script.