python binding releases GIL before call of methods of proxy and acquires GIL after the call