Currently I have a super simple function to open a connection with mongodb:
from mongoengine import connect connection