Simple Perceptron in Python