state updating to py3