I would have a quite simple question, but can't find any suitable automated solution for now. 
I have developed an algorithm that performs a lot of stuff (image processing in fact) in Python. 
What I want to do now is to optimize it. And for that, I would love to create a graph of my algorithm.
Kind of an UML chart or sequencial chart in fact, in which functions would be displayed with inputs and ouptuts. 
My algorithm does not imply complex stuff, and is mainly based on a = f(b) operations (no databases, hardware stuff, server, . . . )
Would you have any hint? 
Thanks by advance !
UML generation is provided by pyreverse - it's part of pylint package
It generates UML in dot format - or png, etc.
It creates UML diagram, so you can easily see basic structure of your code
I'm not sure if it satisfy all your needs, but it might be helpful
Get the complete structure of a program?