made modular python script