Added executable-checking to Makefile.

So far just for virtualenv and mysql_config. Also fixed some style
issues and added a flake8 config file directly to the repository.