PEP8 compliance in ui.py
tests for --rules