While not in python yet. There is the ig.degree.betweenness R package. Which implements the "Smith-Pittman" community detection algorithm which considers both node degree and edge betweenness for igraph
objects.
There is a python implementation in the works however it still needs to be fully developed.
More links:
Blog about Smith-Pittman clustering: here.
Working paper: https://arxiv.org/abs/2411.01394