complete migration to python3