Rewrite of base.py, additions to startproject.py