Fix returning gtkwin_ptr from python api