add unique.py and its test