Permissions issue when running the server and Flask app from supervisor

I am having a permissions issue when running the bokeh-server and my Flask application with supervisor.
A print statement in my flask view shows that the group id ( os.getegid() ) is 1000 (same as my webdev user who runs everything, but os.path.expanduser(’~’) prints “/root”

Here is a stack overflow question where I show the details of my configuration

Thanks everyone!