Swapped out print statements for proper logger logs

Preempting @guillermo-carrasco and @mariogiov by putting in proper logging instead of printing to stderr.
@mariogiov is right! No maybe you're right -- this does rely on the right number of args being passed. I stand by it though! I don't expect os.path.splitext() to return more than two things any time soon.