make Py3.4 compatible