use py_talloc_reference instead of py_talloc_import