fix minor PyLint issues