Print info to file as well
Fix pyflakes warning about redefined variable