fix code style PEP8, add model migration