Partially working script modified for PyNN v0.8