Neural Network Backpropagation Algorithm. Implementation using python