Finished manage.py to be used in shell