double moon classification perceptron written in Python