tinycss is a complete yet simple CSS parser for Python.
anaconda login
conda install jlmenut::tinycss