Update for py3.