Let me know how it works out. Hopefully I'll find time -- soon -- to rewrite the shell script in Python.