fix error for language computation in tasks.py
fixed tasks.py and added old code to compute features