Pattern: adapter, python flavour