upgrade python script skeleton