To find the most important variable for each Principal Component is easy with PCA:
With data->X and variables->variable_names
pca=PCA()
pca.fit(X)
pca_data=pca.transform(X)
n=pca.components_.shape[0]
important=[np.abs(pca.components_[i]).argmax()for i in range(n)]
important_names = [variable_names[important[i]] for i in range(n)]
important_variables= {'PC{}'.format(i+1): important_names[i] for i in range(n)}
important_variables_f= pd.DataFrame(important_variables.items())
However, how can I accomplish the same result with Kernel PCA, since it has no components_ attribute?