You're jumping back and forth between shell and Python quite a bit in this lesson.  This would be useful if you're trying to reinforce shell concepts, but will be confusing in a workshop where for some reason, shell hasn't been covered yet.  I would consider turning as much of this lesson into Python to avoid the confusing mix of languages.