Python Code for Machine Learning