Made basically every class pickable by removing lxml objects from Text_structure class.
Disable closures and inverse relations for now.