Fixes to custom analysers, etc.
Fix setup.py
Partial PEP8-ification.