Code a Binary Classifier in Python