working

To-Do:
- replace all occurrences of shell=True