fixed bug of path when the manage.py is called outside the project root directory; PEP8 conventions