Fix problem when using with gunicorn (django command)

Fix a bug when using simple-db-migrate as app in django with gunicorn.
Gunicorn change sys.stdout to a LazyWriter and this object hasn't encoding attribute.