Fixed #4282 -- startproject should honor umask

Currently I updated the old patch that it works under python2 and python3.
Also I added a test suite that checks if a file has a mode of 0600 and a directory has a mode of 0700 if i set the umask to 0o077