added python code of plugins and made some corrections