I managed to solve the problem with a less painful solution. Heroku provides you with buildpacks, which actually is the environment that your applications is going to build upon. By default you have the python buildpack. That is the reason why the system is able to run commands like python manage.py.... My solution is the following:
1) Install nodejs buildpack as the first buildpack
heroku buildpacks:add --index 1 heroku/nodejs
2) Add the package.json in the same path like requirements.txt
3) In the package.json add the dependency of yuglify
An other solution, is to change your compressions and use a python-written one.
PIPELINE['CSS_COMPRESSOR'] = 'pipeline.compressors.cssmin.CSSMinCompressor'
PIPELINE['JS_COMPRESSOR'] = 'pipeline.compressors.jsmin.JSMinCompressor'
pip install cssmin jsmin
I dont have a clear opinion which is better jsmin or yuglify.