factor out setup code
Merge pull request #890 from goodfeli/warm_start

factor out setup code
Merge branch 'master' of github.com:lisa-lab/pylearn2