Fix python plugin