improved manage.py