Remove unused function
Replace -map/-flatten with -mapcat
Install Python checkers with current setuptools

Should hopefully fix Python errors on Travis CI