modularized python, removed shell script