Fix cifar10 onehot, and pep8

I made an issue #1032 for other files.