log.warn is deprecated, using log.warning
unichr on python 3