Playing with Graphs & Functions (in Python)