restyle mamba.py, remove pseudo-classes, fix small errors