make handler Py3 compatible