refactoring css2c.py