add django 1.7 style migrations
fix some PEP8 issues and remove trailing whitespace