updated the xample python script