migrate python27