updates for python 3