Basic neural net code in Python/Gnumpy