python script for check similarity of data sets