Implement Single Layer Perceptron In Python