Update code to meet a guidance of PEP8