rework the python scrpit
\