added python update macro