Basic Machine Learning Python Code