upgrade for python3