Reading variables from python

I had to work out how to control a function which , reading a variable is the easy bit , this is my post.