add util.py: for key world operation