pyBrain implementation of neural network