pep8
make test pass when device=cpu (this is the normal)
Merge pull request #1 from nouiz/MarcCote-cumsum_gpu

pep8, test work with device=cpu