CSS compression in Python