The functionality of setting up the data directory and starting mongodb is now handled in python code.