Remove PySide Qt dependency in command line tools

The dependency is necessary because they have translatable messages, but
for the command line version I don't care about that, so replace the tr
function with a dummy version if PySide is not present.