Python: fix some ptr oops

r? @frank-trampe