Convert algorithm pseudocode to flowchart using  Tikz, LaTeX and Python