An example of a python single layer perceptron