ticket:1 rewritten manage.py and makefile