added cleanup calls to destroy_thal_structures in both design and thermanalysis modules, also fixed a version typo for the compile time cython def in is_py_3