Update define.py

Add define.py from TingPing/plugins upstream branch to fix previous
issue during merge