Migration to python3