Converted Plugin to .py file