Fix for python3.