updates for python3