Fix #20: opt_key(x) broken with `str` under Py2.x