def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def connect ():
    '''
    Create the connection to the MongoDB and create 3 collections needed
    '''
    try:
        # Create the connection to the local host 
        conn = pymongo.MongoClient()
        print 'MongoDB Connection Successful'
    except pymongo.errors.ConnectionFailure, err:
        print 'MongoDB Connection Unsuccessful'
        return False