add torch7 and fix pybrain test