The code is now embeded in a module plainTab2tex

Just call plainTab2tex.parse(lines) to execute