<s> from mongoalchemy import document <EOL> def make_document_class ( session , document_class ) : <EOL> class_dict = document_class . __dict__ . copy ( ) <EOL> class_dict . update ( { '<STR_LIT>' : session } ) <EOL> return type ( "<STR_LIT>" , ( document . Document , ) , class_dict ) </s>
