add pep8 validation, and refactoring accoding to pep8

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>