Use SystemExit() instance to set code together with message.
Use distutils.spawn.find_executable to find tx (or tx.exe)
Use distutils.spawn.spawn() instead of subprocess.call(), simplify code