py: Fix Handle.setopt and Result.getinfo