fix python plugin manager