Python 3 support for migration