def serialized(self):
        to_ret = {}
        for group, requirements in self.items():
            to_ret[group] = [str(requirement) for requirement in requirements]
        return to_ret
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