for i, a in enumerate(sys.argv):
    sys.argv[i] = a.decode('ISO-8859-15')
opts, args = parser.parse_args()
print(type(opts.some_option), opts.some_option)
How can strings with non-ASCII characters be retrieved with OptParse?