Fixed issue with migrations created by Python 2

See PR #71
https://code.djangoproject.com/ticket/23982