edition python script