address most but not all of pylint's complaints