removing subprocess from tasks.py