Perceptron Learning Algorithm Python Code