init S4 class py-ptr