brew install ctags
In a Python file it will group/fold all of your imports, classes, methods, etc in one view. It is very nice and when you press enter on one of them it takes you to that item in the current buffer.
Here are the screenshots from the github repo screenshots (C++ files):
I’m really liking it so far.