Script to fix Django migrations