[mod] remove strange code
[mod] pep8
[mod] remove useless variable
[mod] style