Fix email sending by setting password to all migrated users + refactor migrate.py

1 job for master in 2 minutes and 34 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Test
failed test #133

00:02:34

 
Name Stage Failure
failed
test Test There is an unknown failure, please try again
  File "/usr/local/lib/python3.5/site-packages/django/apps/config.py", line 86, in create
module = import_module(entry)
File "/usr/local/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'ajax_select'
ERROR: Build failed: exit code 1