Update plugin.py

Clear code. Thanks Bag58.