Refactor output to use py logging framework, replace -v/-s by -q(uiet)
Remove shebang and obsolete future import