Updated comment and added python hook