This is just a simple python static dependency generate tool, It can help you generate the dependency graph find circular import.
You will need the git and graphviz for the tool
apt-get update
apt-get install git graphviz graphviz-dev
pip install SDGraph
SDGraph -f a.py -o dot -n output_name