toggle styles of python dicts