R and Python program for data mining