Fixed Python 3 issue
Fixed Python 3 incompatible migrations