This is not exactly an answer, but I hope to discuss a few things.
LinearFactorModel is definitely not Fama-Macbeth regression. The first stage seems the same, but the second stage only performs one regression, with the endogenous variable being the average of excess returns, whereas in Fama-Macbeth regression, there should be T regressions, one for each time period, and the final estimators should be the average of T sets of estimators.
On the other hand, FamaMacBeth does not seem to have the first stage for a 2-stage Fama-Macbeth regression, which should be N regressions, one for each asset. I guess you could perform the first stage manually if the factors are returns, but the p-values will not be correct.
The situation is further complicated by the fact that the author of the linearmodels package, Kevin Sheppard, does not seem to fully grasp the concept. In his Example: Fama-Macbeth Regression, you can clearly see in code block 3 that he performs the "LinearFactorModel" kind of regression by taking the average of excess returns. I believe he is indeed an expert in econometrics, but he may have been a little confused here. The documentation for linearmodels is a bit lacking as well.
I have also been searching for a well-established python package for 2-stage Fama-Macbeth regression (as I find it difficult to derive the distribution of the estimators and thus the confidence intervals), but so far no satisfying results.