how to disable it again:

and here is how to enable:

if you want to enable it only for a given block:

>>> unicodenazi.disable() >>> with unicodenazi.blockwise(enabled=True): ... assert 'foo' == u'foo' ... __main__:2: UnicodeWarning: Implicit conversion of str to unicode

The reverse works too of course.