retrieve knot_util.py from master branch