seed_data.py cleanups

I looked into this file while trying to figure out why it wasn't working, and I ended up changing a bunch of things. :)

Everything's pretty minor - style changes and making things a bit more robust.  The actual doing-stuff code is all still the same, and should still operate the same.