changing line 331 to output = get_command(args.command).invoke(session, args).encode('utf-8') fixes it