added a python version of hardlink-intersection.sh