adds python script that modifies its own source code