added a few asserts to check that api functions are not called from the mainloop greenlet
added a few asserts to check that api functions are not called from the mainloop greenlet

tavisrudd/eventlet,tavisrudd/eventlet