"""Handler utilities for getting non-monkey patched std lib stuff

Allows one to get an unpatched thread module, with a thread
decorator that uses the unpatching OS thread.

"""
try:
    from gevent import monkey
    [start_new_thread] = monkey.get_original('thread', ['start_new_thread'])
except ImportError:
    from thread import start_new_thread


def thread(func):
    """Thread decorator

    Takes a function and spawns it as a daemon thread using the
    real OS thread regardless of monkey patching.

    """
    start_new_thread(func, ())

@@ -175,100 +175,87 @@
 %22%22%22%0A
-try:%0A    from gevent import monkey%0A    %5Bstart_new_thread%5D = monkey.get_original('thread', %5B'
+from __future__ import absolute_import%0A%0Atry:%0A    from gevent._threading import 
 star
@@ -270,11 +270,8 @@
 read
-'%5D)
 %0Aexc

Make sure we use proper gevent with absolute import, pull the start_new_thread directly out.