[web] Add email config option
[python] Fix emailing and .dat permissions