pep8
Make maxout test work when device=cpu when cuda is available.
fix small error detected by pyflakes.
Merge pull request #282 from nouiz/gpu_test

Gpu test