converted python 2 plugins to python 3