Swapped out print statements for proper logger logs

Preempting @guillermo-carrasco and @mariogiov by putting in proper logging instead of printing to stderr.
Ok, nice - what happens if it returns more than two values? Or do you just have to trust that you know it won't..?

I stole this line from your script by the way :wink: