Pybrain3 compatability fixes