def grab_lock(l):
 l.acquire()
 print 'Got the lock again', l.filename
 l.release()

def grab_lock ( l ) : l . acquire ( ) print 'Got the lock again' , l . filename l . release ( )
stub fn to grab lock inside a greenlet .