python: Use py_check_dcerpc_type() to safely check for credentials