How vB is written, probably, but plugins may be written in any way you wish as long as they work.
Most recent vb releases use classes for the data managers and what not anyway, pretty useful if you're coding plugins.
Anyway, a snippet:
m = re.findall('^(?:(?:(?:(?:(SELECT) ([\w, ]+) FROM...