Here is a documentation on how to compile SASS to CSS via python including the possibility to set output_style=\'compressed\': https://sass.github.io/libsass-python
output_style=\'compressed\'