check for null xptr in py_has_attr
check for null xptr in py_has_attr

rstudio/reticulate,rstudio/reticulate,rstudio/reticulate,rstudio/reticulate,terrytangyuan/reticulate,rstudio/reticulate,terrytangyuan/reticulate,terrytangyuan/reticulate