To add on to this, you can also change rules assigned to a shape in python. It might be simpler to do this than dynamically change the rule, but each has their application.
Keep in mind, this is Jython, and CE libraries have NO relation to arcpy. You cannot run python outside of CE, you cannot work with it in an IDE directly, you cannot import arcpy, and there are limited default libraries (no numpy, no pandas, no great data manipulation libraries). So far I have found most python default libraries are included, including CSV, but past that it is fairly limited.
David Wasserman, AICP