Update migration.py

Fixed python3.x compatibility.
Merge pull request #1 from biljettshop/patch-1

Update migration.py