One thing about the plugin.py example that is out of date is your first summery line should always start on the same line as
<pre>"""summery line starts here</pre>

Please don't start your summery line on a new line like the example in plugin.py does.