Changed pynn.py to use the fmin_bgfs method instead of fmin_cg, which reduced the running time of the example by ~33%