added openthreads and clang compiler fix
improved code, fixed python path bug