OMG it is working thanks a lot !!
I'm glad I could help!
I am quite new to Python and Programming Bitcoin, any idea where I should start ? which books ?
I'd say you're already on the right path; just keep trying to do stuff and ask questions when you get really stuck. The best programmers I know basically taught themselves by trial-and-error. Books, and courses, etc. can help, but (in my experience) nothing will teach you better or faster than mindful practice.
In the beginning, you'll feel like this guy:
But after a while, you'll start to feel like this guy:
Just keep practicing.
(Feel free to send me a PM if you get really stuck on something.)