Release GIL when asking for outbut buffer