Fixed problems with python plugins