I'm not an expert in this, but I took a look at the book and it appears as if the sketches are set up using the IDE. These sketches don't appear to be written in either language. I searched the content of this title and didn't find anything related to Python or Ruby. Hope that helps and have a great day!
Customer Service Representative