Fix errors pointed by pylint