Implementing the Perceptron Neural Network with Python