MongoDB Atlas Auth connection fails in python3 cron job

I got a similiar issue using rails, I’ve created a topic here: MongoDB authentication error