Thought I'd share my "final" version:
gist of asna.py
It's not very sophisticated but I think it will work nicely for me. All documentation needed should be in the header comment.
Thank you so much, I feel so stupid, but at least I can now get on.
No one has replied
Oops! Looks like something went wrong!
You may only upload PNG, JPG, or GIF files ()