a simple strategy pattern from the Head First: Design Patterns Book written in python