Make issue 204 py3 compatible