updated plugin-template
made scripts Python 3 compatible