Updated filter to correct releasing the GIL.