These Adapter code examples are taken from the following excellent tutorial:
http://ginstrom.com/scribbles/2009/03/27/the-adapter-pattern-in-python/
I have made a couple of minor modifications to file names etc., just run execute for each implementation