Update plugin.py

Fixed lines 114, and 377