finish migrate.py

add initial tests by removing all replace(" ", "_")'s in phots. Should work
just fine still hopefully.