Fix pylint problems and Makefile problems