Fixed some issues with syntax, compiles now

To run this, we need scipy installed for pybrain.