Neural Network Implementation in Python