Custom messages

TODO: split up this commit: one for sublime pyflake8 and another for
the locals() error