Neural Network codes in Python