Codes written in python for the book Algorithm design manual