Convert for python3.