scripts/openbabel-python.i: Revert shared_ptr changes

This reverts part of ce178cbbd3182aa3ef5729d2133f497248cf5250.