Drop MY_PV, never used anywhere.
Drop MY_PACKAGE, auto-generate it from ${PN}.
Declare TWISTED_PLUGINS globally.
Make all logic unconditional to PN.

Now it fits all packages that inherit the eclass.