Python3: Add __bool__ method
Use six.get_function_code() and six.get_unbound_function()

Use six.get_function_code() instead of function.im_code and
six.get_unbound_function() instead of function.im_func in
eventlet/green/subprocess.py file