python: Don't try to free const pointers.