Add error templates. Move settings to env for production purposes. Set python 3 runtime.