Various classic machine learning algorithms in python