Removing wsgiref requirement
Updating octal format for os.O_CREAT to match python 3 pattern