Fixed almost violations of pylint.

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