this is perceptron source code based on python for PR