[Python] How to control text attributes with Python

This may help…