Replaced subprocess by commands module
Redefined directory structure and flexibility