attach and detach non-druntime threads
test needs main
fix derp in test
fix PyThreadState
fix runtests
merge from bitbucket