it's a quick test macro, but I can add in appropriate python hooks if really needed.