fixed AdhesionFlex XML generator
Added and commented out clearing of the dictionary python attribute before it gets handed to python gc . For now this feature is inactive, might need int he future so leaving it here as a reference