Neural Network Algorithm In Python