my custom version that works the way i want it to

I had to export my gnote notes as I'm leaving for "pastures new", and had to hand them over to a colleague. In the process, I found gnote-massive-export-to-txt but had to "hack it around a bit" to make it do what I wanted, so thought I should share back...

o Efficiency
o Export arbitrary notes
o Remove redundant code

Feel free to include whichever changes you like.